Movie Summary

RAMP-NL

Movie Summary


For movie Not Using a Datagrid Control - 1 minute.

When a 5250 subfile is presented as a data grid on a junction screen the first question you should always ask: "Can my script always ensure that the data I am interested in occurs in the first entry in the subfile?"

If the answer is yes, then the easiest way to access the content of the 5250 subfile data grid is to disable the grid and treat the entry (browselist cell) as a field:

Disable the grid

In newlook Designer, open the properties of the Form object by double-clicking on the form. Locate the Recognition UseGrids property and set it to False.

Close the designer and save your changes.

Now newlook recognizes the browselist cells as normal fields.

 

Name the first cell as a field

Open the Designer again. The subfile area is now presented as a series of simple text boxes and labels, rather than as a data grid.

Right-click the first text box to bring up its properties and give it a name using the Name property, for example uSelectEmployee.

The script can now put a value to the field just as if it was a normal field:

SETVALUE("uSelectEmployee", "8");

SENDKEY(KeyEnter);