In a script I have a variable set to get (ActiveFieldName) After i do a few things I want to go back to that field and add some text And for the life of me i cant figure out how to go to that field. Thanks for any help.
Store both the table name and the field name in a variable: Get ( LayoutTableName ) & "::" & Get ( ActiveFieldName )
Then use the "Set Field By Name" script step and enter the variable in the Specify Target Field calculation dialog window.
If everything is being done in one script you can use a local variable otherwise you'll need to use a global variable.
Rick, You could give the field (or any/all fields) and object name that is the same as Get (ActiveFieldName) ...
Script would be ....
Set Variable [$fieldname; Value:Get (ActiveFieldName)]
...do some things
Go to Object [ Object Name: $fieldname]
Instead of setting your variable to:
Get( ActiveFieldName )
You might try setting it to:
Get( ActiveLayoutObjectName )
Then, when you want to navigate back to the original/target object, you can use the script step:
Go to Object
This requires that you set layout object names for those fields that might be targeted, but it would not require you to employ a naming convention that identifies object names with field names.
Things get more complex if the target field is within a portal, as you will not only need to target a particular field object, but presumably also a particular target portal row.
HTH & Best,
Thank you all, I knew it was easy but my brain was just not working.
Retrieving data ...