The Action Editor is accessible via the right-click menu and Properties window. One form item can contain multiple actions, such as changing color, calculating totals, or providing information based on user input.
Creating an action using the Quick Start menu
Using a formula from the Quick Start menu, the background color of an item changes when the mouse pointer hovers over it. This example demonstrates the use of the Quick Start, String and Color menus available in the Action Editor.
Creating a summation action
In this action, three currency entry fields are added together and the total of the three fields is displayed in a text label. There are many uses for this action, such as creating subtotals on order forms, or calculating expenses from a business trip.
Creating an action that sets shortcut keys
Actions can set shortcut keys that perform actions when pressed. In this example, the form is submitted when the F2 key is pressed.
Adding headers and footers to printed forms using a action
Headers and footers are used to add information such as print date/time to forms. The headers and footers are only visible when the form is printed. Setting headers and footers is done in the Properties view of the Advanced IBM
® Forms Designer perspective.
Creating an action to display a message window
This action uses the viewer.messageBox
function to display a message that the user must acknowledge by clicking a button. The function is also used to get a yes or no answer from the user.
Destroying a field at runtime
Use the destroy function to delete a field in response to user activity. The "destroy"
function can also delete form items such as buttons, labels, and pages.
Creating an action to re-size a field to fit its contents
The following action dynamically changes the height of a field to fit the text entered by the user. This action requires settings in the Properties window of the Advanced IBM
Forms Designer, as well as the Action Editor.
Creating an action to add fields based on user activity.
Use the duplicate function to create new fields in response to user activity. This action can only be written using the Source view of the Advanced IBM
Forms Designer Perspective.
Creating a group of related fields
In a group of related fields, the state of each field is dependent upon the state of one or more of the other fields in the group.