AnsweredAssumed Answered

Pass the objectName of a button as the ScriptParameter for a script?

Question asked by SteveFransen_1 on Oct 12, 2014
Latest reply on Oct 13, 2014 by philmodjunk

Title

Pass the objectName of a button as the ScriptParameter for a script?

Post

How can I pass the objectName of a button as the ScriptParameter for a script?

My goal is to be able to call the same script from multiple buttons with minimal changes to each copy of the button as I create it on the layout. At a minimum, I have to change the objectName of each copy of the original button. So, I would like to make that the only change to maximize consistency and minimize code maintenance.

I could manually enter the button's objectName in the "Optional script parameter:" field of the "Button Setup" dialog but then each time I create a new button I have to edit the new objectName and then manually enter it again as the "Optional script parameter:"

Thanks

 

Outcomes