Cloud Software Group, Inc. EBX®
Data Model and Data Visualization Add-on Documentation > User Guide
Navigation modeData Model and Data Visualization Add-on Documentation > User Guide

Adding graphs to toolbars

Administrators can set up EBX® toolbars to run the add-on's Generate data using configuration service. This provides convenient access to graphs for business users. A toolbar configuration can serve as a shortcut to access a graph with a single click. Note that this configuration method does not allow selection of multiple records.

The following example shows how to set the toolbar's service parameters to automatically open an Org chart in Step by step mode. This type of graph only allows selection of a single record, which makes it a good candidate for toolbar configuration. To configure a toolbar:

  1. Create the toolbar:

    • Click Data models from the main EBX® menu bar.

    • Open the desired data model.

    • Navigate to Extensions > Toolbars.

    • Open the context menu next to [All elements] and select Create toolbar.

    • Enter a name and optional label and description.

    • From the list of Locations check the Table row and Record form on top options.

    • Click Save and close.

  2. Configure the toolbar action:

    • Open the context menu next to the toolbar you created in the previous steps and select Create child.

    • From the Toolbar item type menu, select Action button.

    • Update Service options as follows:

      • Target: Select Web component.

      • Service: Select Display data using configuration [ebx-addon-dmdv@GraphData].

      • Modal: Select Workspace.

      • Parameters: Set the following:

        • Dataspace: ${currentDataspace}

        • Dataset: ${currentDataset}

        • Dataset node (XPath): ${current}

        • Graph configuration: Enter the name of the graph configuration as it is defined in Administration > TIBCO EBX® Data Model and Data Visualization Add-on > Value and relationship graphs > Configuration.

        Note that you can hard code the above parameters. However, the Dataset node (XPath) must use ${current}. Otherwise, graph display is limited to the record path provided.

      • Use the remaining properties to determine toolbar display.

    • Click Save and close.

  3. Add the toolbar to a table:

    • In the data model's Data structure group, select the table you want to add the toolbar to.

    • Open the table's Advanced properties tab.

    • Scroll down and under Presentation > Toolbars, set Tabular view row to the toolbar you created above.

    • Click Save.

  4. Publish the data model to make the toolbar available.