Building Actions Using Tango BuildersHow Tango Builders Work in Application FilesTango builders help you create and generate a sequence of actions to perform specific tasks. Builders are added to an application file in exactly the same way you add any other action. Once you add a builder and configure it, the actions the builder generates are inserted automatically into the application file. Builder information is saved in the application file format, making it cross-platform capable. This means you can use any application file containing a builder across all platforms. Tango Editor provides two builders.
The topics covered in this chapter include:
Adding a Builder to an Application FileWith a new or existing application file open, you add a builder in the same way you add an action; that is, you drag the builder icon from the Actions palette into the application file window. When you drag either of the builder icons into an application file window, the corresponding builder window opens. For example, if you drag the Search Builder icon from the Actions palette into an open application file, the Search Builder window opens so you can immediately set Search Builder options.
In the application file window, the corresponding builder icon appears with a default name, just like with actions. The default name for the Search Builder is "SearchBuilder" and for the New Record Builder, "NewRecordBuilder".
|
|
For more information, see "Conditional Action Execution (If Action)". |
If you add a builder to an application file that already contains the same builder using the default name, Tango adds a number to the default name and increments it by one for each subsequent addition, for example, "SearchBuilder1", "SearchBuilder2", and so on.
Within the application file, a builder behaves exactly like an action group. That is, it contains actions that can appear in expanded or collapsed form. In the preceding diagram, the Search Builder icon represents a group, but the group is empty until its actions are built. Tango Server ignores unbuilt builders. Page Format Table SettingsTango Editor by default saves your Tango Builder page formats and uses these settings for new tables you create in the builders, allowing you to develop a consistent appearance for Web sites and Tango applications quickly. Unique page formats set in the New Record Builder and in each of the Search, Record List, and Record Detail tabs in the Search Builder are saved and used as defaults for new tables. To change whether page format are saved
Building the ActionsOnce you have entered all the relevant information in the builder window, you can generate the actions. To build Search or New Record actions in an application file
|
For information on generating actions in the Search Builder, see "Actions Built by the Search Builder". For information on generating actions for the New Record Builder, see "Actions Built by the New Record Builder". |
On completion, the actions appear in the builder group. You can view the hierarchy of a builder in an application file. Click the disclosure triangle to expand or collapse the builder group accordingly. When building actions, the builder replaces any existing actions in the group:
|
Copyright © 1999, Pervasive Software. All rights reserved.