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
[<span style="color: #0000ee"><span style="text-decoration: underline; ">objListManager</span></span>|lansa049_0200.htm#_Ref130186092]
[<span style="color: #0000ee"><span style="text-decoration: underline; ">Replacing Hardcoded Employee Number with Current Instance List Entry</span></span>|lansa049_0150.htm#_Ref132613943]
[<span style="color: #0000ee"><span style="text-decoration: underline; ">Show Contents List</span></span>|../../index.htm#lansa/lansa049_0130.htm] |