A PDF report produced by the iConsole can offer drilldown capability by including links in the report. These links will then run a specific search in the iConsole to retrieve the live drilldown data. The links will function both when viewing the report within the iConsole using the Acrobat Reader browser plug-in and also when viewing the PDF report using the standalone Acrobat reader, as long as the iConsole is accessible from the computer on which the PDF is being viewed. This means that even when a PDF report is generated automatically using WgnReport and emailed to a user, that user may still access the drilldown links.
A helper template has been produced in order to simplify the creation of the url for use in the XSL-FO basic-link element. The template is called ExternalSearchURL and takes the parameters name, major['1'], minor['0'], section['Published'], category[''] and parameters[''] (default values in square brackets). Only the name parameter is mandatory to define the name of the search to be run. The parameters parameter specifies the parameters to be used for the search as an ampersand separated list in the format name1=value1&name2=value2. If the parameter name is enclosed in square brackets the value is interpreted as the attrs for the parameter. This is particularly useful for date range parameters, allowing pre-defined date ranges to be specified.
The following example creates a url to run version 2 of the standard search to get emails for the last calendar quarter:
<xsl:variable name="search-url"> <xsl:call-template name="ExternalSearchURL"> <xsl:with-param name="name" select="'Standard Search'"/> <xsl:with-param name="major" select="'2'"/> <xsl:with-param name="parameters" select="'chkEE=true&[dateRange]=2;1;2;8'"/> </xsl:call-template> </xsl:variable>
This may then be used in the basic-link element like this:
<fo:basic-link show-destination="new" external-destination="{$search-url}"> <xsl:value-of select="'My Link'"/> </fo:basic-link>
By default, the drilldown will open in a new window. To display the drilldown in the iConsole window specify the pseudo parameter NewWindow=false. This will prompt the user with the option to replace the PDF report; otherwise the drilldown will open in a new window.
Copyright © 2014 CA.
All rights reserved.
|
|