Define a Slider Control

The Slider Control block is used to specify a single value and pass this on to other objects. In the example shown below, a slider can be used to specify the minimum % Total CPU value to display in a grid. When the user slides the marker to a different value, the grid updates to use the new minimum.

The query uses a parameter, @{lowerCPU} for the minimum value. The value for this parameter is supplied by the Slider block and specified in the Input Bindings section of the query block.

Setup the Slider Block

  1. Start with a Query block and define it as necessary.
  2. Drag the Slider block onto the workspace and connect it to a Query Data block.

  1. Specify the Pane in which to place the slider.
  2. Optionally, provide some text in the Prompt field to display with the slider.
  3. Specify the Minimum and Maximum slider values using either the fields in the Input Bindings or the manual settings. Settings in the Input Bindings will take precedence over manual entry.
  1. Enter the Initial value for the slider. Select from the drop down list if you want this to be an entered value, or a percent of max.
  2. Click the Apply button.
  3. Select the Query Data Block. In the Query section specify the parameter @{lowerCPU}. Then click the Apply button to save your changes.
  4. Open the Input Bindings section for the Query Data block. The parameter you just specified in the Query section, should now be available as a field (lowerCPU). In this field select the .value attribute from the drop-down list. (There could be more than one option depending on what parameters have been specified in the Query)

.

  1. In the example shown above, the query uses a parameter, for the minimum value. The value for this parameter is supplied by the Slider block. When you are done, click the Apply button.