Inserting data with the Source Data component

The Source Data component enables us to insert data into spreadsheet cells by changing the selected index value of the component. This is a different approach to inserting data than the one we saw in Chapter 3, From a Static to an Interactive Dashboard, when we were discussing selectors and drilldowns.

Getting ready

Open a new SAP BusinessObjects Dashboard file and enter the following data into the spreadsheet:

Getting ready

How to do it...

  1. Drag a Pie Chart component into the canvas.
  2. Bind the Chart field to cell B3 and leave the Subtitle field empty.
  3. Bind the Data | Values field to the spreadsheet range from C3 to E3. Select the Data in Rows option.
  4. Bind the Labels field to cells C5 to E5.
  5. Drag a Horizontal Slider component to the canvas.
  6. Bind the Data field to cell B1.
  7. Set Minimum Limit to 0 and Maximum Limit to 3.
  8. Now drag the Source Data component into the canvas:
    How to do it...
  9. Set Insertion Type as Row.
  10. Bind the Source Data field to cell range B6:E9.
  11. Bind the Destination field to cells B3:E3:
    How to do it...
  12. Go to the Behavior tab. Bind the Selected Item Index field to cell B1:
    How to do it...
  13. Preview the dashboard:
    How to do it...

How it works...

As mentioned in the introduction of this recipe, the Source Data component has the same data insertion functionality as selector components and drilldowns from charts. But, the data insertion of the Source Data component is triggered by a changing value in a spreadsheet cell and not directly by a user interacting with a component.

In this recipe, we used the Horizontal Slider component to change a cell value (cell B1) to trigger the data insertion. But you can, of course, also use this component in combination with Excel formulas, Dynamic Visibility, or the data inserted by other components.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset