Code Table Data

Visual LANSA Framework

Code Table Data

The read-only grid shows the data in the table. To edit or add table data, click on the row you want to edit or add and then edit the values in the right hand panel.

To save the values you have edited, either click on a different row or press the Save button. If any validation errors result from the save they will be displayed in the Framework status bar.

You cannot edit key values once the row has been successfully saved.

If the table is a read only table you cannot edit the values in the right hand panel.

Save Button

The Save button saves the selected row.

It passes the data for the current row to the table data handler function, with the operation code of INSUPD - see the source for function UF_SYSBR/UFU0011 for an example of how the table data handler does the save.

Delete Button

The Delete deletes the selected row.

It passes the data for the current row to the table data handler function, with the operation code of DELETE - see the source for function UF_SYSBR/UFU0011 for an example of how the table data handler does the save.

Replace All Button

The Replace All button deletes all existing table data, and then saves all the data displayed.

It passes the operation code of DELETEALL to the table data handler function, which deletes all table data for the function, and then passes the data for each row to the table data handler function with the operation code of INSUPD - see the source for function UF_SYSBR/UFU0011 for an example of how the table data handler handles DELETEALL and INSUPD.

 

This property is in the Code Table Data tab.