
You can perform the following operations for the action that you created in the Mobile Project:
Assign the action to the event of a UI element
Implement the action event handler, as required
The mobile client for laptops executes the action event handler at runtime when the application user triggers the action by using the associated UI element.
You have created the required actions and UI elements in the Mobile Project .
Assigning an Action to the Event of a UI Element
In the Laptop UI explorer , double-click the view element in which you want to implement the action.
Choose the Layout
In the Outline View , click the required UI element .
Choose the Properties tab.
Under Event , click onAction .
Select the required action from the dropdown list box.
Choose .
Implementing the Action
To view the generated source code for the event handler onAction <Name of Action>, click the required view element with the secondary mouse button, and choose .
The program code of the event handler should only be inserted into the code area, as shown below, otherwise the IDE overwrites or deletes the code during code generation:
Comment lines //@@ begin
Code area
...
Code area
Comment lines //@@ end
Program the event handler, as required.
Choose .