August 4, 201510 yr Hi there, Is there a way to determine the name of an object from within conditional formatting and or script parameters? Example: I have a number of buttons that all have object names. When I click on the button I just want to pass the object name as a script parameter. All the best,
August 4, 201510 yr I believe this works when you click the button to send as a script parameter: Get ( ActiveLayoutObjectName ) Edit: Correction. I forgot this function doesn't work when a button is clicked. It does work if you tab to the object. You can still have 1 script and just pass the parameter from the button to the script. You will need to edit the button's script parameter for each button. Edited August 4, 201510 yr by Josh Ormond
August 5, 201510 yr Hello, Get ( ActiveLayoutObjectName ) don't work but GetLayoutObjectAttribute ( NameObjectButtonFromButtonBar ; "isActive" ) is (presque) ok, but not good if you are ≥2 buttonBar ( ≥2 activButton ) I just work on this problem, formatting can read "self" (button title) and can declare variable with the active object ( v14 ButtonBar ) But with Conditional formatting in v12, v13 and v14, you can take the title of the last clicked button. In v14 and the button bar, you can take the nameObject of the barButton - Last Button clicked Here a link for the demo file ( open for v12 to v14 ) ( not ok WebDirect ) Agnès Edited August 5, 201510 yr by Agnès
August 5, 201510 yr Author Agnes, I already saw your solution, good work, but not enough for me. I just want to have the object name ( not the visible name on the button because I work with a multi-lingual solution ) and also for web direct…
August 7, 201510 yr Hi, the behavior of the formatting is not the same with Web-direct and GetLayoutObjectAttribute ( NameObjectButtonFromButtonBar ; "isActive" ) don't work with web-direct, may be a bug in the function, button is active but we can't take information Agnès
Create an account or sign in to comment