Automatically Generate and Snap in Filters

For this exercise you need a new business object (see Create a Business Object Manually). Select the business object and display its Common Activities.

To generate a filter automatically, use the Set up how New Business Object should be searched options:

 

Before you can generate a filter, the instance list table, columns and identifier have to be set up (see Define the Instance List). In this example the table associated with the business object is xHomesForSale.

Choose the option Allow search over all table views to generate filters for the table associated with the business object as well as all its views.

 

Wait until the filters have been created and snapped in.

 

Then display the Filters tab to see your filters:

 

Execute the Framework to test the filters:

 

Switch to the Visual LANSA editor, and display the repository tracking list for your Framework to see the filters and their associated server modules which have been created for the business object.

 

 

Note that the XXX_XXXXXXX_FilterHiddenAll - a hidden filter which fills in the instance list without any user interaction – is not snapped into the Framework by default. If you want to use it, snap it into the Framework. To learn how to do this see Snap in the Filter.