Creating a Link to Open in a New Window

You can create a hyperlink in a reporting fragment that opens the object's task view in a new browser window.

Procedure

  1. In the Query Explorer, complete the following steps.
    1. Drag and drop a Data Item into the Data Items pane.
    2. In the Properties pane, under the Data Item category, double-click the Expression property.
    3. Enter the following expression:
      '<a href="#"' + ' onclick="' + 'javascript:window.open(' + chr(39) + 
          [DEFAULT_REL].[SOXRISK].[RI_DETAIL_PAGE_URL] + chr(39) + ')' + '">' + 
              [DEFAULT_REL].[SOXRISK].[RI_NAME00] + '</a>'
    4. Set the Name property to URL Info.
    5. Set the Aggregate Function to None.
    6. Set the Rollup Aggregate Function to None.
    7. Click OK.
  2. On the main page of your list report, drag and drop an HTML Item as a column in your report and complete the following steps.
    1. In the Properties pane, under HTML Source, set the Source Type property to Data Item Value.
    2. Set the Data Item Value property to URL Info.
    3. In the Properties pane, under Text Source, set the Text property to Risk Name.
  3. Cut the original Risk Name column from the report.
  4. To make RI_DETAIL_PAGE_URL a property of the list, complete the following steps.
    1. Select the List object from the main report page.
    2. In the Properties pane under the Data category, double-click Properties.
    3. Select [RI_DETAIL_PAGE_URL].
    4. Click OK.
  5. Save the report.
  6. Ask your system administrator to configure a reporting fragment field for this report.

Results

When the reporting fragment is executed in the IBM OpenPages®, it will appear as a widget in the view.

When you click the CrossTrack link, it will bring you to the object task view in a new pop-up window.