Hyperlink Parameters in JasperReports


The following parameters set the behavior for hyperlinks for JasperReports when viewed in a BBJasperViewerControl or a BBJasperViewerWindow.

A hyperlink enables users to browse to a URL, view another report, or invoke a command. See also BBJasper.

 

Link Type

Action

Null

None

None

None

Reference

Browse to the URL specified in the Hyperlink Reference Expression property

Local Anchor

Command or Report

Remote Anchor

Command or Report

Local Page

Command or Report

Remote Page

Command or Report

Custom

Command or Report

 

Param Name (case insensitive)

Param Expression (value)

Command

OS Command

ReportName/Report_Name*

JasperReport name.

Valid when specifying ReportName/Report_Name:

    WindowTitle

Title of the JasperViewer window. When not specified the internal report name will be used.

    FitType

Fit type of report, valid values (case insensitive); width, page, actual.

    WindowX

X location of the JasperViewer window.

    WindowY

Y location of the JasperViewer window.

    WindowWidth

Width of the JasperViewer window.

    WindowHeight

Height of the JasperViewer window.

    TabTitle

Title of the tab when a tabbed view is active. When not specified the WindowTitle will be used (in BBj 16.0 and higher).

As of BBj 16.0, valid when specifying ReportName/Report_Name as a Param.

Link Target

Action

SELF

Displays the report in the current window.

BLANK

Displays the report in a new window.

PARENT

Displays the report in a new inactive tab (default).

TOP

Displays the report in a new active tab.


Example 1 - URL Settings

Hyperlink ‘A’ is set with parameters to browse to the URL specified in ‘B’.

 

Example 2 - Report Settings

Hyperlink ‘A’ is set with parameters in ‘B’ to run the report defined in ‘C’.

 

Example 3 - Command Settings

Hyperlink ‘A’ is set with parameters in ‘B’ to invoke the command defined in ‘C’