Using the Spreadsheet Table component to debug

When developing dashboards, there will always come a time when you are totally stumped on why something is not working correctly. Refer to spreadsheet debugger.xlf to follow the example.

Getting ready

In our example, we will illustrate a simple bug and how to find its cause. Our example contains a drop-down control that populates a chart with preloaded data.

We've purposely populated the data area incorrectly ahead of time where we've accidentally forgotten to map an extra column on the row output. In reality, we won't know that the data has been incorrectly populated.

Getting ready

How to do it…

  1. Execute the dashboard. You will notice that the data looks off on the dropdown and the chart.
    How to do it…
  2. Insert a Spreadsheet Table component anywhere on the dashboard.
  3. Map the spreadsheet to the area that is populated by the data.
    How to do it…
  4. Execute the dashboard. You will see that the data looks okay. There's data under China. So let's see what the output of the drop-down selector is.
    How to do it…
  5. Bind the spreadsheet table to the output area of the drop-down selector.
    How to do it…
  6. Execute the dashboard and you will see that China's data is missing from the dropdown selector output. Now you know that you will have to fix the dropdown selector binding.
    How to do it…

How it works…

As you can see, using the Spreadsheet Table component is very helpful in seeing what is happening under the hood. In this example, you can easily oversee a large area of data. If we were to try to debug by figuring out which component is causing the issue, it would take much longer as we would have to go through the Dropdown component, Chart component, and Data Connection in order to find the culprit. This is a simple example, but just imagine if there were a lot more components involved.

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

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