The List Manager

RAMP-NL

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 an invoke 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:

 

 /* Navigate to the nearest access junction */

NAVIGATE_TO_JUNCTION("uFindEmployee");

 

/* 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);
SENDKEY(KeyF21);

  

Also See

objListManager

Replacing Hardcoded Employee Number with Current Instance List Entry