AnsweredAssumed Answered

GO TO OBJECT PROBLEM

Question asked by sai on Oct 6, 2015
Latest reply on Oct 7, 2015 by erolst

I have a Simple Layout with 6 fields.  The first field is a drop down that is used to select one of the remaining 5 fields for entry. 

In the first field I use the OnObjectExit Trigger to run the following script:

 

LAYOUT ENTRY SCRIPTS: GOTO ENTITY ACCESS FIELD

#============================================================================================ # PURPOSE: This script moves to the appropriate ENTITY ACCESS Field
# PARAMETERS: None
# CALLED BY: OnObjectExit Script Trigger

# AUTHOR: SSII #============================================================================================ Allow User Abort [ Off ]
Set Error Capture [ On ]
Set Variable [ $AccessLevel; Value:G400_ENTITY ACCESS::ACCESS LEVEL ]
Set Variable [ $ObjectName; Value:$AccessLevel&" KEY FIELD" ]
Go to Object [ Object Name: $ObjectName ]
Set Variable [ $ActiveLayoutObjectName; Value:Get ( ActiveLayoutObjectName ) ]
Exit Script [ ]
# ************************* END OF SCRIPT ***************************

 

 

Using the script debugger everything is fine, the Active Layout Object becomes the one I calculated, HOWEVER, as soon as the script exits the Active Layout Object switches to the next field in the tab order, not the one determined by the script.  If I eliminate the tab order the Active Layout Object switches to the first field.  What am I doing wrong?

Outcomes