April 29, 200817 yr [color:blue]I have a portal on a Work Order form. In the portal are containers that will store job-related documents. The container objects are set up as buttons that trigger a script that prompts the user for information about the file. The problem is, since there are multiple containers, I want to use a variable to reference which container field the user has selected. For some reason, it seems that once the container object becomes a button, it can not be "selected" and therefore the Get ( ActiveLayoutObjectName ) or Get ( ActiveFieldName ) returns nothing. Does anyone know if there is a workaround for this, or maybe I am doing something wrong? Thanks!
April 29, 200817 yr Hi while trasforming the container field into a button, set the script parameter and you'll be able to know which container had you choosed with the function Get ( ScriptParameter )
April 29, 200817 yr Author raybaudi - Thanks a bunch! It took me a while to figure out where you were telling me to actually set the script parameter. I discovered that when I use Button Setup to "Perform Script" and click "Specify", there is an Optional Script Parameter at the bottom. I just typed in a name "BeforePhoto1" (didn't even click Edit), so when I run the script I can call [color:red]Get ( ScriptParameter ) and for that button, it returns "BeforePhoto1". [color:green]Perfect.
Create an account or sign in to comment