- Message box
- Open a Grid component
- Open a Report, Label or Letter layout
- Open a web page in a pop-up window or a DIV
- Ajax Callback
- City, State Lookup from Zip Code
- Zip Code Lookup from Address
- Lookup and Fill-in Fields
- Set Page Content
- Lookup and Fill-in Action
- 'Set Page Content' Action
Open a Grid component in a pop-up window, or in a DIV on the current page. If the Grid is running inside a Tabbed UI component, can also open the target Grid in a new pane in the Tabbed UI. The target Grid is typically filtered using data from the current record.
Display a report, label or letter layout as a PDF file using the Acrobat PDF reader. The report is displayed in either a pop-up window, or in a DIV on the current page. If the Grid is running inside a Tabbed UI component, can also open the target Report in a new pane in the Tabbed UI.
Open a web page (including .a5w pages, static .html pages, or any other web page, e.g. www.google.com) in a modal, or modeless pop-up window, or in a DIV on the page. This action also opens 'Supercontrols' - automatic links to Google Maps, Google Search, MSN Maps, etc.
Define a user-defined ajax callback. The callback can be handled by an Xbasic function that is defined in the Grid component, by a separate .a5w page, or by another page (.e.g. .php, .asp, .aspx, etc.) page.
For a given zip code, lookup the city and state on the USPS web site and fill in the city and state in the current record.
For a given address, lookup the Zip code on the USPS web site and fill in the Zip code field in the current record.
Lookup values in a table and fill-in fields in the current row from fields in the Lookup Table. See below for more details.
Set the content in one or more page elements (i.e. 'divs', 'spans', form fields, etc.) to values obtained from fields in a Lookup Table. See below for more detaisl.
The 'Lookup and Fill-in Values' allows you to perform an Ajax callback to find a matching record in a Lookup Table and then fill-in fields in the record you are editing with data from the Lookup Table. Features of this action include:
Link to the lookup table on multiple files
Fill in multiple fields in the current record
Options to skip filling in fields in the current record if the field already has data in it.
Examples of where it might make sense to use this action include the onclick event of a button, or the onblur event of an input control.
This allows you to define the lookup table, and how it is linked to the data in the current record. Once you have defined the lookup table, you can click the smart field for the 'Definition' to define the rules for what content gets filled-in. This dialog looks like this: You can define as many rules as you want.
To define a new rule, click the 'Add Action' button. This dialog allows you to add a new action. If you use 'Advanced' mode in the above dialog, then you can write an arbitrarily complex Xbasic script to generate the Ajax response that is sent to the server.