Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[ Image Removed |../../index.htm#lansa/vlftutorials_0230.htm]

...

In this step you wil change some of the columns in the instance list. Because of this, you will also change your server module and filter and recompile them. The list in this example is in Simple Grid Style.

Display the Instance List tab for the Employees business object. Then click the Street column.
Image Removed
Image Added
 
Click Delete this Column.

Delete all the address fields in the same way.

Add the Annual Salary field to the instance list.
Image Removed
Image Added
 
Save and execute the Framework, and display the Employees business object. Note that the Annual Salary column has no data.
Image Removed
Image Added
 
To load data to the column, you need to change your server module and filter.

In the Visual LANSA editor, open the server module XXX_XEMPLOYEE_FilterHiddenAll_svrm.

Locate the definition of the instance list columns:
Image Removed
Image Added

Remove the address fields and add the salary field:
Image Removed
Image Added

Compile and close the server module.

Open the the hidden filter XXX_XEMPLOYEE_FilterHiddenAll.

Display the Source tab and locate the definition of the instance list columns:
Image Removed
Image Added

Replace the address fields with the xEmployeeSalary field.

Lastly locate the #AVLISTMANAGER.AddtoList statement:
Image Removed
Image Added

And again replace the address fields with the xEmployeeSalary field (note it is a numeric column).
Image Removed
Image Added

Compile the filter.

Now execute the Framework and display the Employees business object:
Image Removed
Image Added
 
In the workbench you can modify some settings of the instance list columns. To see how this is done, display the Instance List tab of Employees and click on the Salary column.

Change the Edit Code to Z.
Image Removed
Image Added
 
Save and execute the Framework to see the effect of this change:
Image Removed
Image Added
 
 
[ Image Removed |../../index.htm#lansa/vlftutorials_0230.htm]