Create Your Own Command Handlers

Visual LANSA Framework

Create Your Own Command Handlers

Framework Programming

Tutorials:

VLF007WIN  - Snapping in A  Real Windows Command Handler

VLF007WAM  - Snapping in a Real WAM Web Command Handler

 

When you turn your prototype to a real application, you snap in your custom made command handlers, which perform the processing in your application.

WINDOWS: You create the command handler as a reusable part, compile it and then snap it in the Framework.

WAM: You create the command handler as a Web Application Module, compile it and then snap it in the Framework

Use the Program Coding Assistant in the Framework to generate the command handler code for you or define it manually

Snap It in the Framework:
  • Start the Framework executing (as a designer).
  • Display the property dialog of the object with which the command is associated:

For the Framework

Select menu item Framework and then Properties

For an Application

Double-click on the application.

For a Business Object

Double-click on the business object.

 

  • On the resulting properties dialog click on the Commands Enabled tab.
  • Select the command that you wish to replace with your real command handler. Make sure to select whether the command is a Business Object or Instance command, and to set the desired Command Options:
  • Use the Windows group box to associate a Windows real filter to the selected Business Object filter. Use the Web Browser group box to associate a WAM real filter to the currently selected Business Object command.
  • Click the radio button of one of the real handler types.
  • Type the handler name into the property field if it is known.
  • Alternatively, click on the Find button to open the repository search dialogue. Enter a partial name and/or description and click the Find button to restrict the of return repository objects matching those strings.
  • Locate your command handler in the object list and select it by double clicking on it or selecting it and clicking the OK button.
  • Check the WAM Component radio button to associate a WAM real command handler to the currently selected Business Object command.
  • Save the Framework.

Your handler is now snapped into the Framework and usable. Test, modify, debug and recompile your filter as you would any component.