Skip to main content

Group Builder

image1.png

Left Panel

The left panel of the Data Group Builder displays the connector name selected from the previous dialog (Project Explorer Connector Groups or Template Studio Data Connections) along with a list of existing data groups configured for that connector.

Note that if the Data Group Builder is launched from the Template Studio, on close, the selected data group in the list is returned and set as the Source Name for the Data Connection.

Filtering

The Filter by name option allows filtering the list of existing data groups. This filter acts as a “starts with” filter.

  • For example, if Process is entered, any data group that starts with Process is shown.

Clear the text in the setting to see the complete list of data groups.

Controls

  • Add image2.png

    Click the Add button to add a new data group for the connector.

    image3.png

    Specify a Name and click OK to create the new group.

  • Copy image4.png

    Click the Copy button to copy the selected data group. You are prompted for a Name for this new group. Click OK to create this new group using the settings of the selected group.

  • Delete image5.png

    Click the Delete button to delete the selected data group.

Description

At the top right of the data group is where a description for the group can be set. This is optional and provided to help document the purpose and usage of the data group.

Items Tab

Tag List

image6.png

The tag list displays every tag that is selected for the group.

Browsing and Selecting Tag Names

To add an tag, select a cell in the Name column, and click the browse button (…) to open the item browser. A Name can be one of three choices:

  • Literal name: Actual name of the tag (as configured in the data source). A literal name can be selected from the Online browser or from a Catalog.

  • Variable name: A variable tag is a placeholder that is assigned a literal tag name at the runtime of a report. Variable names can be selected from the Variables branch of the tag browser and can be a User-Defined or a Register variable. User defined variables are not limited to the {Tag X} syntax – these can be assigned to any expression, e.g. {Temperature} or {Pressure} by typing in the name.

  • Static Variable name: Fixed text.

Note

Variables (displayed in {}) provide a way to assign the tag names externally, e.g., when the group is used on-demand, the item name is specified.

Static Variables (displayed in *{}) are considered fixed text for display only and are not used for data retrieval. Select Treat as Text to configure.

Scaling

The tag value returned by a data group can be Scaled using a Numeric formula or limit Conditions.

Numeric
image7.png

Up to 3 numeric conditions can be specified to scale the tag value.

Examples:

  1. An item contains the flow rate in gallons/minute. To calculate the total flow in MGD perform an average on the item value and then scale with *1440/1000000.

  2. An item contains the temperature in Fahrenheit. To convert to Celsius scale, use the formula:

    -32*5/9.

Formula
image8.png

Condition scaling provides up to three Limits that provide up to three ways the value can be scaled. The scaling supported are:

  • Specific Value

  • Column Value

  • Column Value that has an applied Formula

Examples:

  1. When an item value is below 0.001, display the text negligible otherwise show the value.

  2. When an item value is below 100, display blank otherwise scale the value by 1000.

  3. A digital item contains the state of a pump. When the value is less than 0.5 display OFF, otherwise ON.

  4. An item contains the temperature of an oven. Display LOW, MEDIUM, and HIGH at specified temperature thresholds.

Heading

If the Headings section under Additional Options is set to Shown at Design Time or Shown at Runtime, up to two headers can be included in the output of the group. To change a heading, select the cell in the Heading column and click the browse pushbutton […].

image9.png

Headings can be fixed text, a Variable, or a combination of both. A variable would normally be used when the item name is also a variable.

When a Variable is used, substrings can be created using the Parse Mode.

image10.png

The following options are available:

  • Before

    Substring contains all the characters before the Start character.

  • After

    Substring contains all the characters after the End character.

  • Between

    Substring contains all the characters between the Start the End character.

The Include start character option includes the start character as part of the parsed text.

Controls

  • Add image2.png

    Click to add a new row below the selected row in the tag list. If no row is selected, new row is added to the bottom.

    Once the row is added, the tag browser automatically opens to select a tag to add.

  • Empty Row image11.png

    Click to add an empty row below the selected row in the tag list. If no row is selected, new empty row is added to the bottom. Empty rows translate to empty columns (or rows depending on Tag Orientation) in the returned data set from the data group.

  • Delete image5.png

    Click to delete the selected row in the tag list.

  • Up/Down image12.png

    Click to move the selected row up or down in the tag list.

Find & Replace

find_and_replace.png

This option provides the ability to find and replace text in the tag list for mass editing purposes.

Additional Options

image14.png

Tag Orientation

  • By Column

    If selected, the data set returned from this data group is orientated with each selected tag (or empty row) in the tag list as a column.

  • By Row

    If selected, the data set returned from this data group is orientated with each selected tag (or empty row) in the tag list as a row.

Include timestamp

If unchecked, no timestamp is returned in the data set for this data group. If checked, the following options are available:

  • First Tag

    The timestamp is returned as the first column or row (depending on the Tag Orientation) in the data set from this data group.

  • All Tags

    The timestamp is returned as the a column or row (depending on the Tag Orientation) for each selected tag in the data set from this data group.

Headings

  • Not Shown

    If selected, headings set in the tag list are basically disregarded.

  • Shown at Design Time

    If selected, headings set in the tag list are added to the report template when the data connections are saved.

    Note that headings are written in the rows above (or columns to the left depending on Tag Orientation) the Target Cell specified for the data connection. Headings are only written if these cells are empty, otherwise the heading in the group is disregarded.

  • Shown at Runtime

    If selected, headings set in the tag list are added to the report when the report is generated from the template and the data set from this data group is written to the report.

    Note that headings are written starting at the Target Cell specified for the data connection.

Preview

To preview the data group, click the Preview image15.pngbutton.

image5.png

To preview the output of the group settings, click the Refresh button.

Multiple instances of Preview can be opened to compare data.

If the group contains Variables, they are listed in the display so that values can be specified.

Save

To save the data group, click the Save image17.png button.