Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6053 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

[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!

Posted

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 )

Posted

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.

This topic is 6053 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.