Title
Object name as find criteria
Post
Hi
I have several buttons on the layout, one for each user of the company credit card, for them to enter the Account and Job details on each record of card transactions (previously uploaded from bank export). What I'm trying to achieve is a generic script that picks up the button object name, and uses this as a find criteria.
So that button named and labelled Leigh will find her records, prompt her to enter the details, she then clicks done to go back to menu layout, her button has a tick beside it and next person does their bit ...
I've experimented with Get(ActiveLayoutObjectName) to be returned as a Script Parameter, but this appears to only return the object name when it has focus - not when it is clicked.
any ideas welcome
GetActiveLayoutObjectAttribute won't work in either context for the reasons you stated in your original post.
But putting the text you wanted this expression to return, "Leigh", will work. You can also reference the contents of a field or variable in the script parameter box.