Overriding Instance List Column Headings

Visual LANSA Framework

Overriding Instance List Column Headings

In the Windows Framework the filter can override the instance list column headings, using the avListManager.AlterColumnHeadings method. For example:

invoke #avListManager.AlterColumnHeadings ForVisualID1('My Visual ID 1 Column Heading') ForVisualID2('My Visual ID 2 Column Heading') ForAColumn1('My Additional Alpha Column 1 Heading')  ForNColumn1('My Additional Numeric Column 1 Heading')   ForBusinessObject(<<The user object name/type of the business object>>)

The overrides are cumulative.

If the instance list contains a tree of business objects, an override to the column headings for any business object in the tree can be specified. However, the overrides apply only to the business object in the current tree, not to the business object elsewhere in the Framework.

If you want to remove all overrides and revert all the column headings to what they originally were, you can use avListManager.ResetAlteredHeadings:

 

invoke #avListManager.ResetAlteredHeadings

 

This removes all overrides for any business object in the current tree.