Adding a Tree Control, Combo Box, and Slider

How to:

In this topic, you will add three Information Builders custom components to the application.


Top of page

x
Procedure: How to Add a Tree Control
  1. Select the Tree Control, Drop Down Boxes tab.
  2. Drag and drop the ibiTree component onto the tab canvas and position it in the top-left corner.
  3. Set the following properties:
    • id=subtree
    • Width=260
    • Height=180

      Tip: You can set the width and height by dragging the sides of the component.

    • ibiParent=MAIN01
    • ibiUseColumns=REGION,ST
    • ibiTreeLabelField=REGION,ST. This property sets the labels for each node of the tree.
    • ibiFilterAble=true

    ibiTree component on tab canvas

  4. Run the application.

    Sales Performance Dashboard in web browser


Top of page

x
Procedure: How to Add a Combo Box
  1. Drag and drop the ibiComboBox component onto the canvas and position it to the right of the ibiTree component.

    ibiComboBox component in canvas

  2. Set the following properties:
    • id=combo1
    • ibiColumn=REGION
    • ibiParent=MAIN01
    • ibiFilterAble=true
    • ibiFilterCond=EQ

Top of page

x
Procedure: How to Add a Slider
  1. Drag and drop the ibiHSlider component onto the canvas and position it to the right of the combo box.

    ibiHSlider component in canvas

  2. Set the following properties:
    • id=slider1
    • ibiAutoLimits=true. The numeric field in the data has a minimum value and a maximum value. This property sets the end points of the slider to the minimum and maximum value. You can set custom limits using Flex Builder properties.
    • ibiColumn=COGS
    • ibiFilterAble=true
    • ibiFilterCond=LT (Less Than)
    • ibiParent=MAIN01

Top of page

x
Procedure: How to Add a Grid to Test the Filters
  1. From the Aggregated Grid tab, copy the panel containing the SUB03 grid. The panel title is Regional Category Sales.
  2. Paste the panel and the grid at the bottom of the tab, as shown in the following image.

    Aggregated Grid tab

  3. Select the grid and set the following properties:
    • id=SUB04
    • ibiGroupBy=REGION,ST,CATEGORY
    • ibiUseColumns=REGION,ST,CATEGORY,Sum.DOLLARS
    • ibiUseFiltered=true
  4. Run the application and use the components to filter the grid.

    Sales Performance Dashboard with filtered components


WebFOCUS