Skip to main content Skip to complementary content

Variable input extension

The variable input extension is a visualization extension for setting the value of a variable. It is included in Dashboard bundle.

When to use it

If you have visualizations with expressions that contain a variable, you can use the variable input extension to let the user control the variable value.

Creating a variable input control

You can create a variable input control on the sheet you are editing.

Do the following:

  1. From the assets panel, under Custom objects > Dashboard bundle drag a Variable input object to the sheet.
  2. Select the variable to use in Name under Appearance > Variable in the property panel.
  3. Select how you want to input data in Show as:

    • Buttons lets you add a number of buttons with one button for each defined variable value.

      You can select how to display the buttons in Display, select Row to show them in a horizontal row or Column to show them in a vertical column.

      You can define the buttons in two different ways, fixed (Fixed) or (dynamic) Dynamic with the Fixed or dynamic values setting under Values.

      If you select to use fixed values, you need to add each button with Add Alternative and define a value (Value) and a label (Label) for each button.

      If you use dynamic values, you define the buttons with a string in Dynamic values.Use | to separate buttons, and ~ to separate value from label. For example, 'Germany~GER|France~FRA' will create two buttons labelled GER and FRA. The first will change the variable value to Germany, and the second changes the value to France. You do not need to specify labels if you want to use values as labels.

    • Drop down adds a drop down with one item for each defined variable value.

      You can define the items in two different ways, fixed (Fixed) or (dynamic) Dynamic with the Fixed or dynamic values setting under Values.

      If you select to use fixed values, you need to add each item with Add Alternative and define a value (Value) and a label (Label) for each item.

      If you use dynamic values, you define the items with a string in Dynamic values.Use | to separate items, and ~ to separate value from label. For example, 'Germany~GER|France~FRA' will create two items labelled GER and FRA. The first will change the variable value to Germany, and the second changes the value to France. You do not need to specify labels if you want to use values as labels.

    • Input box provides a simple input box that will update the variable value.
    • Slider creates a slider that updates the variable value. You define the minimum setting with Min and the maximum setting with Max under Values. You can also set the step to use with Step. If you select Slider label, the selected value is displayed when you drag the slider.

      The variable value is updated when you stop dragging the slider, but you can select Update on drag if you want the variable value to be updated while you drag. This can be useful when you want visualizations based on the variable to update dynamically when dragging the slider. Use this option with caution, as the constant redrawing of charts can be annoying.

Limitations

For information about general limitations, see Limitations of visualization extension bundles supplied by Qlik.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!