Friday, August 28, 2020

Automatically Display Description in Screen Grid

X3 has the ability to automatically display definitions in grids for certain fields. The following example, this technique is demonstrated for displaying the unit of measure short description for a given unit of measure value.

1. In X3, open the screen definition which contains the grid.

2. In the Field grid, locate the unit of measure row (in this example, PCU).

3. Locate the Type column. To the right of the column, click on the 3 vertical dots.

4. From the pop-up, select "Jump to".

3. Note that the "Data types" screen opens (Development > Data and parameters > Tables > Data types). Note that the type code is "UOM".

4. Note that in the "Convergence" section, the linked object is "TUN", which is the linked table "TABUNIT" (Table of units of measure).

4. Click the "Back" button to return to the screen definition.


5. In the screen definition, in the Field grid, on the same row as before, go to the "Link" column, open the drop-list and select "Short" for short description (if needed, select "Long" for long description).

6. Save the screen changes.

7. Run "Validation" and walk through the validation steps.

8. Exit the screen definition.

8. Open the screen in X3 and note that the "Description" column appears in the grid to the right of the UOM column.

9. Populate the screen fields and note that the "Description" column is automatically populated with the description of the displayed UOM value.



-

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.