Passing parameteres in URL
This example shows how to add variable to indicator formula and then set its value through URL.
- Create new report
- Open Variables and filter panel
- Add new number variable identified as "var" and click on Save.
- Add new table
- Add formula indicator - see example formula below. Then click on Save.
- Add drill-down and save the table and also the report. Since default value of variable is not set, the indicator values should be empty.
- Add formula indicator - see example formula below. Then click on Save.
- Add some value to variable and click on Save. Correct table should be now displayed.
- Value of this variable can be set by opening this URL: https://URL/bi/report/detail/IDofReport?var=20
- URL - URL (IP) of your BellaDati installation
- IDofReport - numerical ID of report (for example 279)
Passing parameter in embed view
It is also posssible to pass a value of variable into embed view (iframe).
- The scenario is the same as in report. In this example a text variable "text" is used in KPI label.
- Create new embed view by clicking on export icon and selecting embed code.
- Click on "Show as external page".
- Add code "text=custom text variable" at the end of the URL and click on Enter. The value should be now displayed.
Passing parameter in dashboard
- Add view with variable in dashboard. The same view with variable "text" is used in this example.
- Add code "text=another example" at the end of the URL and click on Enter. The value should be now displayed.
Overview
Content Tools