Movie Summary

RAMP-NL

Movie Summary


For movie Link the Selected Employee in the Instance List with the Display Employee Screen - 4 minutes.

This movie shows how to display the details of the employee selected in the instance list.

If we select an employee and the Details command, the invoke script of the screen executes and RAMP navigates through a number of junction screens and then shows us the uDisplayEmployee screen.

However, regardless of which employee we click on in the instance list, the details one and the same employee are shown. This is because the invoke script contains the hard coded number of the employee we chose when tracking navigation.

Change the Invoke script to display details for current employee

To change the script so it shows the details of the currently selected employee:

·         Start RAMP tools

·         Locate the invoke script for the uDisplayEmployee destination screen

Here is the line where the hard coded value for the employee identifier is entered into the Employee Code field:

 

SETVALUE("utxtEmployeeCode", "A1004");

 

To substitute the employee identifier with the currently selected entry:

·         Select "A1004" including the quotes

·         Right-click and choose Current Instance List entry

·         Select Alpha Key 1 from the submenu

This replaces the hard coded value with a special value that will contain the identifier of the employee that the user has selected:

 

SETVALUE("utxtEmployeeCode", objListManager.AKey1[0]);

 

Save the changes to the script. The Display Employee screen now shows the details of the employee selected in the instance list.

 

Also See

Replacing Hardcoded Employee Number with Current Instance List Entry

Invoke Script

SETVALUE Function