Button dashboard control

Run a file or template, load a dashboard, desktop, or run a PC Collect inspection or Python script any time the Button dashboard control is clicked on a dashboard in run mode. The background color of the Button can also serve as an alert for an out-of-range statistic.

 

Contents  [Hide]

 

For this example of a Button control, the color red is assigned as an alert that a specified number of samples are out of control. See Editing the BackColorRegions property for more information

When the Button control itself is clicked on the dashboard, it is set to display a saved dashboard that displays more information about what led to the out-of-control situation in this example:

   

This control can automatically refresh at a time interval you define or it can refresh along with the dashboard window.

The Button control Properties dialog options

Some of the Button control properties (attributes) may be familiar in usage and may not require additional explanation. Many of the properties featured in this topic are specifically designed for GainSeeker users.

See Using the Properties dialog

Adding a button control to a dashboard window

  1. Click the Button on the dashboard controls toolbar on a dashboard window that is open in design/edit mode

The Dashboard Control Retrieval dialog opens.

  1. Click the name of a preexisting retrieval to select it or create a new retrieval. See Using the Dashboard Control Retrieval dialog for more information on the dialog options, including importing, exporting, editing, creating, and copying retrievals.

Note: Click the No Retrieval button on the Dashboard Control Retrieval dialog if no data retrieval is to be displayed on the control. The Set Label Text dialog opens.

  1. Click Next or OK on the Dashboard Control Retrieval dialog after a retrieval is selected.

  1. The Set Label Text dialog opens. Add any user-defined text or select the statistics to display on the control. Then, click OK. See Using the Set label Text dialog

The control opens on the host dashboard in design/edit mode, displaying the selected statistic labels. The Properties dialog menu changes to display the Button control setting and the properties grid displays the properties specific to this control for which the property values can be changed.

However, when this control is saved in design/edit mode and later redrawn on its host dashboard window in run mode, it may look similar to this example, depending on whether there are BackColorRegions property settings assigned to it.

For this Button, the color red was user-assigned to serve as an alert when a specified number of samples are out of control. See Editing the BackColorRegions property for more information.

Editing the BackColorRegions property

Define background colors for the button to indicate user-specified data conditions using the BackColorRegions property.

For this Button control, the color red was user-assigned to serve as an alert when a specified number of samples are out of control.

Likewise, the Button background color might be set to green when conditions fall within a user-specified acceptable range, or yellow or orange, for example, when conditions are between the acceptable and unacceptable range. See Using the Define BackColor Regions dialog:

To edit the BackColorRegions property value cell:

  1. Click the BackColorRegions property value cell under Appearance.

  2. Then, click the ellipsis button in the value cell.

The Define BackColor Regions dialog opens.

Using the Define BackColor Regions dialog

On the above example, the Define BackColor Regions dialog has three defined background color regions—green, orange, and red—as shown in the Defined regions grid.

The orange bar in the example is selected for edit as indicated by the highlighted arrow in the cell. The start value for color Number field is set to 1 and the End value for color Number field is set to 3 (as circled in red).

Thus, the range setting for the orange bar is 1 to 3. Count out of control is the statistic selected on the Value for region comparisons drop-down list in this example. So when 1 to 3 samples are out of control, the Button background turns orange. Likewise, it turns red or green when the user-set conditions for those background colors are met in this example.

Using the value drop-down lists

Value for region comparisons, Start value for color, and End value for color drop-down lists in the Define BackColor Regions dialog each feature advanced search option features.

To display close matches to a search word or phrase:

Note: The Contains search field and Find next button are displayed with the Start value for color and End value for color area only when a statistic (not the "User-defined number" option) is displayed on the drop-down list bar.

To add a new defined region to the Defined regions grid:
  1. Click the Add button to add a new defined region to the Defined regions grid. Each displays default values that be changed. Repeat until the wanted number of regions display in the grid.

  2. Click the cell preceding a defined region to select it for edit, which is indicated by an arrow in a highlighted cell.

The statistic parameters and background colors can be set for the selected region.

To set the statistic parameters for a defined region:
  1. Click a statistic for comparisons from the Value for region comparisons drop-down list.

  2. Click a statistic in the Start value for color drop-down list. Or, click User-defined number in the drop-down list and enter a numeric value in the Number field that displays.

  3. Click a statistic in the End value for color drop-down list. Or, click User-defined number in the drop-down list and enter a numeric value in the Number field that displays.

To edit the display color for a defined region:
  1. Click the cell preceding a defined region to select it for edit, which is indicated by an arrow in a highlighted cell.

  2. Click the Edit color... button.

  3. The Color dialog opens.

  4. Click a color to select it. Then, click OK.

See Timer for information on setting an automatic refresh rate interval so the control displays the latest available data.

Editing the BackgroundImage property

You can add a background image to a Button dashboard control.

To add an image:

To remove a selected image from the background of the control:

Editing the ClickAction property

The ClickAction property configures an action to be automatically triggered each time the user clicks the Button dashboard control.

To set the ClickAction property:

  1. Click the ClickAction property value cell in the Behavior category on the Properties window.

  2. Then, click the ellipsis button in the cell.

The Select Action Item window opens.

  1. Click an options button to select the ClickAction item on the Select Action Item window. Then, click an item on the drop-down list to select it.

For dashboards and desktops:

For Inspections, Planned Inspections, and Inspection Scripts:

To automatically refresh the dashboard after the selected Action is complete, select the Refresh Dashboard after Action is complete check box. This can be useful if the Action will update the information being displayed on the dashboard.

Note: When this option is used, the user cannot interact with the GainSeeker Charts module until the Action being performed is finished. For Actions that involve running a different program - File, Template, Planned Session, Stored Session, Inspection, or Planned Inspection - that program must be closed before the user can resume interaction with the GainSeeker Charts module.

You can optionally use command line parameters with the Run a File, Run a Template, Run a Planned Session, Run a Stored Session, Run an Inspection, Run a Planned Inspection, and Run Inspection Script options on the Select Action Item window. For more information, see Setting up shortcuts to perform automatic functions.

For any type of Action, if the button is based on a Retrieval, you also have the option to add any statistics from this Retrieval to the command line. This can be useful if the Action contains a Python script or Template command that can parse the command line for these additional values.

To do so, click the Include Statistics button.

When the Pick Statistics window is displayed, you can select multiple statistics to include on the command line. For more information on these statistics and their ID numbers, see SPC statistics available or DMS statistics available.

When the user clicks this Dashboard button, its Action will be launched with command line parameters for the statistics you choose here.

For each statistic you select, a command line argument named "stat<ID_number>" will be used when launching the Action, and the value for that command line argument will be the actual value calculated for that statistic (based on the Retrieval for this button). You can see this in the Parameter Preview box as you add statistics.

If you use this function when the selected Action loads a Dashboard, Desktop, or Dashboard Script, these statistical command line parameters will be added to the in-memory collection of command line parameters. Please be aware that clicking dashboard Buttons that include statistics will never clear an existing parameter from this in-memory collection - it will only add new parameters (and their values) or update the values of existing parameters.

  1. Click OK on the Select Action Item window after selecting a ClickAction item.

Editing the Text property

To edit the Text property value to change the statistics labels and the display format of the Button:

  1. Click the Text property value cell under Data. Then, click the ellipsis button in the cell.

The Set Label Text dialog opens. See Using the Set Label Text dialog

Editing other Button control properties