The List Manager

RAMP-TS

The List Manager

Script interactions with an instance list are done by accessing properties of the Framework JavaScript object named objListManager (the list manager).  

For example a script that displays a screen showing the details of an employee uses the objListManager in the SETVALUE command to set the employee to the selected entry in the instance list:

 

/* Check for arrival at uFindEmployee */
 if ( !(CHECK_CURRENT_FORM("uFindEmployee","Unable to navigate to form uFindEmployee")) ) return;
 
/* Set the employee to be displayed to the employee selected in the */
/* instance list (which is identified by the programmatic identifier AKey3) */
SETVALUE("utxtEmployeeCode",objListManager.AKey3[0]);
 
/* Send the key required to navigate to uDisplayEmployee */
SENDKEY(KeyEnter);

  

Also See

objListManager

Replacing Hardcoded Employee Number with Current Instance List Entry