Topics: |
You can use a JavaScript function to dynamically navigate to panels within a Designer page and pass parameters from content in one panel to the content in other panels. This makes it possible to create an interactive page where the user can explore the data in different ways.
To create the Navigate to Panel 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 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 the target content for the parameters coming from your JavaScript function..
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 create a Designer Page, inspect the target content item inside the page and determine the CSS class for this item.
The browser debugger interface opens.
The CSS classes that belong to this item appear highlighted in the debugger.
This is the unique identifier of your content item.
How to: |
In this step, you edit the report containing hyperlinks to specify the output location and test the Navigate to Panel function.
JAVASCRIPT=drillRefresh
An example of modified syntax should look similar to this:
JAVASCRIPT=portalDispatch('drillRefresh' 'self' 'CONTENT-JFJUGXYX1LHV08Z5T210' 'Country' WF_RETAIL_LITE.WF_RETAIL_GEOGRAPHY_STORE.COUNTRY_NAME)
where:
Is the JavaScript function.
Is an indication that the current page will be refreshed.
Is the CSS class that you copied from the web browser debugger interface.
Note: If you want to refresh two or more items on the page, paste their CSS classes separated by spaces and enclose them all in single quotation marks, like so: 'CONTENT-JFJUGXYX1LHV08Z5T210 CONTENT-JFJUJUDL12XKUUHTX291'
Is the name of the parameter that is being passed from the hyperlinks.
Is the database entry which is tied to the parameter alias.
The following image shows an example of the modified syntax.
When working with more complex content items, such as matrix charts or reports, you might want to pass more than one parameter to your target content. In such cases you need to create a separate drill-down link for another parameter and modify your syntax to include two parameters in a single Java function. An example of syntax for passing two parameters is shown in the following image.
The preview mode opens.
The second content item refreshes to reflect the correct data, as shown in the following image.
WebFOCUS | |
Feedback |