Grouping ActionsOrganizing Related ActionsThe Group action allows you to organize actions within the file by grouping related actions and naming the group. The topics in this chapter cover: About Grouped ActionsIn large Tango application files, it is common to place a number of related actions together; however, when viewing an application file, it can be difficult to locate the related actions. To allow you to better organize actions within the file, you can group related actions and name the group. They also provide a destination for branching. |
|
You can view grouped actions in a collapsed or expanded state by clicking the disclosure triangle. Groups added to an application file are in the expanded state by default. The collapsed or expanded state of an action group is saved in the application file. When the file is next opened, the last state is restored. You can also include an action group within another action group. You cannot associate action attributes with an action group. When you select a group, Results HTML, No Results HTML, Error HTML, and Push attributes are disabled. Working With Action GroupsAdding an Action GroupTo add an action group to an application fileFollow the instructions in "Adding an Action to a Group" on this page to add actions. To automatically group selected actions
A new action group containing all selected actions is created and positioned where the top-most selected action was. |
|
Once added, the action group appears with a default name, just like other actions. You rename action groups in the same way you rename other actions. Just like action names, the action group name must be unique within the application file. Adding an Action to a GroupTo add an action to a group
Removing an Action From a GroupTo remove an action from a group
Ungrouping ActionsTo ungroup all actions with a groupThis deletes the group action but keeps the actions that were within the group. You can also drag actions out of the action group, but that does not delete the Group action itself. Deleting an Action GroupYou delete an action group and all actions within it the same way you delete any action. Deleting a group also deletes all the actions within it. For more information, see "Deleting an Action". Effect on Actions of Editing an Action Group
Branching to an Action GroupYou can specify an action group as the destination of a Branch action. For more information, see "Jumping to a Designated Action (Branch Action)". Executing Grouped ActionsWhen Tango Server encounters an action group during file execution, no operation is performed on the action group itself, only on the actions within the group. |
|
Even though an action group has no effect on the execution of an application file, Tango Server supports the ability to branch to an action group and the ability to break out of an action group. If a Break action is encountered within a group, the next statement to be executed is the first statement outside of the group. |
Copyright © 1999, Pervasive Software. All rights reserved.