Overview
Application Scenario
You can open a report mounted to the decision-making platform on a new tab page by clicking a hyperlink. The following figure shows the effect.
Implementation Method
Method one: You can use the window.parent.FS.tabPane.addItem() API in JavaScript type hyperlinks to achieve the effect. This method only takes effect on the platform and cannot be previewed directly.
Method two: You can install the Tab Opening on the Platform plugin, and select New Tab on the Platform when setting hyperlinks.
Example
The example in this document only shows the application of method one. For details about the application of method two, see Tab Opening on the Platform Plugin.
Template Preparation
You can open the template: %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\SpecialSubject\HyplinkReport\Order Detail Table.cpt
You can also click to download the template Order Detail Table.cpt
Hyperlink Adding
1. Delete the existing Web Report hyperlink of cell A2 in the template, as shown in the following figure.
2. Select cell A2, add a JavaScript hyperlink, add a parameter ID, enter the formula =$$$ as the corresponding value, and enter the JavaScript codes below, as shown in the following figure.
The JavaScript code is as follows:
window.parent.FS.tabPane.addItem({title:"Order Detail",src:FR.servletURL+"?viewlet=Order Detail Table.cpt& OrderID="+ID})
Template Mounting
Save the report, access the decision-making platform, and mount the report to a directory, as shown in the following figure.
Effect Display
Open the report in the platform directory. The effect of opening the hyperlink on a new tab page is the same as that shown in section "Application Scenario."
Template Download
For details, you can download the template Opening a Hyperlink on a New Tab Page.cpt