Movie Summary
For movie Create a filter and snap it in - 4 minutes
This movie shows how to create a filter that locates employees:
Create code for filter
· Start the Program Coding Assistant
· Choose Filter that searches by all logical views
· Enter the name of the physical file that most resembles the business object: PSLMST
· The code assistant generates the code for the filter program
· Use the Copy to Clipboard button
Create filter reusable part
· Open the Visual LANSA development environment and:
· Create a new reusable part, call it by any unique name and give it a description
· Paste the generated code from the clipboard into the Source tab for the reusable part
· Compile it
Snap in the filter
· Return to the Visual LANSA Framework
· Close the Coding Assistant window
· Bring up the properties of the _Employees business object
· Go to the Filters tab and select the filter for this business object and snap in a real filter choosing the reusable part we just created
· Close the properties window, and save the Framework
You now have a real working filter. If you enter a value, all the matching employees will be loaded into the instance list.
See Also: