In this section: |
You can use a JavaScript function to dynamically navigate to portal pages and reports within your portal. This feature is especially useful in portals with multiple portal pages, because it allows you to link to a specific item or point in your content. You can also pass a parameter from a link to its output, such as a chart or report.
To create the Navigate to Page function, you need to perform the following steps:
How to: |
In this step, you will create a simple report with hyperlinks, which you will later configure to point at a specific output in a portal.
For more information on how to create a basic report, see the Creating and Customizing Reports chapter, in the TIBCO WebFOCUS® InfoAssist User’s Manual.
The Drill Down dialog box opens.
Note: Remember the name of the parameter. You will use it in the subsequent steps.
The following image shows the example of the Drill Down dialog box, where Country is the name of the parameter.
The hyperlinks are added to the entries of the highlighted field.
Note: The links remain inactive and evoke no error messages until the target value is configured.
How to: |
In this step, you build parameterized reports and charts that will serve as outputs for your links.
Click Build a Report.
The Create a filtering condition dialog box opens.
The following image shows an example of the filtering condition, where Country is the name of the parameter.
How to: |
In this step, you will create a landing page for the hyperlinks and incorporate the report that you created in Step Two, to a Portal.
Note: In a collaborative portal, the Page Name value is displayed in the Add Page window. In a basic portal the Page Name value is displayed in the Properties panel. You can also see the Page Name value in if you hover over any portal in the Resources tree.
The Choose a Layout dialog box opens.
In this example, we select Two Column layout.
A Panel container is inserted inside the first column.
The Resources tree opens.
How to: |
In this step, you edit the report containing hyperlinks to specify the output location.
An example of modified syntax should look similar to this:
JAVASCRIPT=navigateToPage('page1' 'panel1 panel2' 'Country' WF_RETAIL_LITE.WF_RETAIL_GEOGRAPHY_STORE.COUNTRY_NAME)
where:
Is the JavaScript function.
Is the name of the landing page.
Note: This value is case sensitive. You can only have one landing page.
Are the names of the panels with parameterized content.
Is the name of the parameter that is being passed from the hyperlinks.
Note: The panels added to this syntax will be refreshed once you click the hyperlink. This behavior can be changed at any time by adding panel names to or removing them from this syntax. This allows you to choose which content gets refreshed on the landing page.
Is the database entry which is tied to the parameter alias.
The following image shows an example of modified syntax.
The second portal page displays, and the content refreshes to show the correct data.
Note: If you navigate to a portal page that has changed, you will not receive an error message, and must ensure that your syntax values are set correctly.
The following images show the Navigate to Page function at run time.