Now we will create a Hyperlink that lets us open a PRD report. We will create the Hyperlink on a text-field that contains the name of the country currently under analysis. Clicking on the Hyperlink will open a report that gives us information about that country.
country
in the field Attributes.field. We select the object, right-click on it, and in the context menu choose Hyperlink... as shown in the following screenshot:This will open the Hyperlink's Editor as shown in the following screenshot:
To accomplish this, we complete the Editor's formula as follows:
Pentaho Repository
.True
. With this option, the Hyperlink includes in its definition the value of Server URL:.We complete the login information as follows:
admin
password
Then we click on OK. Once we are logged into the Pentaho BA Server, the following options will be much easier to complete, as we will be able to navigate through the solutions folders and see the Parameters of the report we choose. The user we use to log in should be an admin.
/public/Reporting
, and choose the report 13_Adding_Subreports.prpt
as shown in the following screenshot:Next, we click on OK to continue.
_BLANK
. This will open the report in a new window.The values this attribute can take are the same as the HTML specifications for the tag <a>
. For more information, visit the following page: http://www.w3schools.com/tags/att_a_t arget.asp
Press click for more details...
; this is the text that will appear if we hover over the text for a few seconds.[country_id]
to the Parameter SelectCountry as shown in the following screenshot:Next, we click on OK to continue.
As we can see, this will open a new tab in the web browser, where the selected country will be passed to the report 13_Adding_Subreports.prpt
as shown in the following screenshot:
If we look closely, we will see that the configuration of our Hyperlink has been saved in Style.url, Style.url-tooltip, and Style.url-window-target.
If we click on the icon located to the right-hand side of Style.url, we will see that the Hyperlink's logic is created through the Open FormulaDRILLDOWN
function:
=DRILLDOWN("remote-sugar"; "http://localhost:8080/pentaho";{"SelectCountry"; [country_id] | "::pentaho-path"; "/public/Reporting/13_Adding_Subreports.prpt"})
For more information about DRILLDOWN,
visit the following page: http://wiki.pentaho.com/display/Reporting/DrillLinking.
We chose the text-field that has the value country
and we created a Hyperlink on it. We configured the Hyperlink to run the report 13_Adding_Subreports.prpt
and send the value of [country_id]
to its Parameter, SelectCountry
. We saw where and how the information related to the Hyperlink is saved. Finally, we analyzed the Open Formula DRILLDOWN
function.