Creating a selector for elements on a Grid/Graph

You can create a selector that allows a user to choose which elements to display in a Grid/Graph. These elements can be from an attribute, a custom group, or a consolidation on the Grid/Graph.

The default style of the selector is set to Drop-down and the Show All option is cleared, although you can change these defaults.

You can choose to either automatically maintain the targets of attribute and metric selectors, or manually define these targets:

For more information on automatically maintaining targets, including instructions to enable or disable it, see Automatically maintaining targets for selectors.

You can choose to either include or exclude the selected elements from the target Grid/Graph by default. If the selector title bar is displayed, a user can choose for himself whether to include or exclude data when viewing the document (for metric condition selectors). For examples, see Determining whether the selector includes or excludes data: Selection type. Steps to define the default behavior are included below.

Prerequisites

To create a selector for elements in a Grid/Graph

  1. Open the document in Design or Editable Mode.

  2. Right-click the attribute name (not an attribute element) in the Grid/Graph to use as the target of the selector, and select Create Selector Control. A selector is created just above the Grid/Graph. The selected attribute is the source, the selected Grid/Graph is the target, and the Action Type is set to Select Element.

  3. If the targets are not automatically maintained, you must manually specify the target of the selector, as described below:

    1. Right-click the selector and choose Select Target. The Select Target dialog box is displayed.

    2. Click the Grid/Graph, panel stack, or selector to use as the target. The sizing handles of the target are displayed. To select multiple targets, press CTRL and click each control to select it.

    3. Click the Select Target icon Select Target icon. The controls you selected are added as targets of the selector.

  4. Right-click the new selector, then select Properties. The Properties and Formatting dialog box is displayed.

  5. From the left, click Selector.

  6. Select an attribute, custom group, or consolidation in the Source field. The elements of the Source are displayed as items in the selector.

  7. From the Selection Type drop-down list, select one of the following:

  8. If the selector's title bar is not displayed, then this setting is used. If the selector's title bar is displayed, a user can use the title bar to change between including or excluding the selections.

  9. By default, autosubmission is enabled, which means that once a user chooses an item in the selector, the target immediately updates without any additional user interaction. For steps to disable it, see Controlling how data updates: Autosubmit.

Now that you have created the selector, you can modify properties, such as multiple selections and simultaneous display of selector items, and format the selector.

Related topics