QlikWorld 2020 Global Conference. Join us to discover how to get the most from your data. Act fast. Register now and save.

On-Demand reporting control

The On-Demand reporting control adds a button to create Qlik NPrinting reports on demand. It is included in Dashboard bundle.

Requirements

  • You need to have access to a Qlik NPrinting Server (June 2017 or later) with a Qlik NPrinting app that is connected to the Qlik Sense app that you are designing. This Qlik NPrinting app contains your report templates.
  • All users running On-Demand reports need to be added as users in Qlik NPrinting, with a security role that supports running On-Demand reports.

When to use it

The On-Demand reporting control is useful when you want the user to be able to print predefined Qlik NPrinting reports within Qlik Sense, using their selections in the app as a filter.

Adding a server as a trusted origin

If you are creating On-Demand reports in Qlik Sense or a QlikView Web Server hosted QlikView AccessPoint, you must add these servers as a trusted origin in Qlik NPrinting web console.

For each server path used to access the Qlik NPrinting web console, you must add a trusted origin. For example, if your server can be accessed through a local domain, a shortened host, or fully qualified URLs, a trusted origin must be added for each of those server paths.

How you enter the server paths in the Address field of the trusted origin depends on your security configuration.

Configuration 1: SSL security not setup with Qlik NPrinting web console

A trusted origin is required for each server path used to log onto the Qlik NPrinting web console. For example, if your server is qlikserver1 and has an IP address of 192.168.0.101, you would add the following trusted origins:

  • http://qlikserver1
  • http://qlikserver1.domain.local
  • http://192.168.0.101

Configuration 2: SSL security setup with Qlik NPrinting web console and third-party

A trusted origin is required for each server path used to log onto the Qlik NPrinting web console. URLs must use HTTPS. For example, if your server is qlikserver1 and has an IP address of 192.168.0.101, you would add the following trusted origins:

  • https://qlikserver1
  • https://qlikserver1.domain.local
  • https://192.168.0.101

Adding a trusted origin

Do the following:

  1. In Qlik NPrinting, click Admin > Settings.
  2. Click On-Demand Settings.
  3. Click Add trusted origin.
  4. After Name, enter a name for the trusted origin.
  5. After Description, enter a description for the trusted origin.
  6. After Address, enter the URL for the QlikView Server.

    The URL must be the base URL (scheme and host) only. For example, http://qlikserver1 rather than http://qlikserver1/qlikview/index.htm.

  7. Click Create.

Configuring On-Demand settings on Qlik NPrinting Server

You must configure these settings on your Qlik NPrinting Server:

  • You must have a connection to a QlikView Server or a Qlik Sense server.

    QlikView Server and QlikView Cluster connections are supported with On-Demand. Local connections are not supported. See: Creating connections.

  • If you are connecting to a QlikView Server or Cluster with a QlikView Server Extranet License, the following options must be enabled when configuring the connection:
    • Connection requires authentication
    • Apply user section access for reports
  • You must enable your Qlik NPrinting reports for On-Demand.
  • You can limit On-Demand report creation through security roles. See: Role based security.
Note:

On-Demand is compatible with Chrome, Firefox, and Explorer. It will not run in Microsoft Edge, because the certificates will not download.

Enabling Qlik NPrinting reports for On-Demand creation

Qlik NPrinting reports must be manually enabled for On-Demand creation. Reports must be assigned to the QlikView document or Qlik Sense app with which you want to generate On-Demand reports. On-Demand creation can be enabled during the creation of a new report.

Do the following:

  1. In Qlik NPrinting web console, click Reports.
  2. Open a report or create a new report.
  3. Select an app from the App drop-down list is connected to the QlikView document or Qlik Sense app for which you want to generate a report.

    Note: On-Demand requests only work with reports based on a single connection. MultiDoc reports are not supported.
  4. Select the Enable On-Demand check box.
  5. Click Save.

The report template is now available.

Creating an On-Demand reporting button

You can create an On-Demand reporting button on the sheet you are editing.

Do the following:

  1. From the assets panel, under Custom objects > Dashboard bundle drag On-demand reporting to the sheet.
  2. Set the server connection in Server Connection under NPrinting Connection in the property panel. The URL must end with /.

    Example: https://<server name>:4993/

  3. Select the Qlik NPrinting app that contains the report template in Choose App.
  4. Select the Qlik NPrinting connection in Choose Connection. The list only shows Qlik NPrinting connections to the Qlik Sense app you are working in.
  5. Select the report to connect to the button in Choose Report under Report Configuration.
  6. Select a default export format of the report in Default Export Format.
  7. Set the button label in Button Label under Appearances.

You have now created an On-Demand reporting button. When you click the button, a report is generated.

Generating a report

You can generate a report that is filtered according to the current selections in the Qlik Sense app. You need to be in analysis mode.

Note: You can only filter on fields that are included in the Qlik NPrinting report template, or the report will fail. It is not possible to filter on selections using an expression.
  1. Click on the button that you created.

    The Export dialog is opened, showing the status of the report generation.

  2. When the report is generated a download button is activated. Click the download button to download the report.

You have now downloaded the report.

Tip: You can also generate any Qlik NPrinting On-Demand report that is available to you with the New Report button in the Export dialog. You are prompted to select a report and export format.

Limitations

For information about general limitations, see Limitations of object bundles supplied by Qlik.

  • If the Qlik NPrinting report template contains a filter, it is not possible to make conflicting selections in the Qlik Sense app, or the report will fail.
  • When you use the On-Demand reporting control in a mashup, you need to use Windows authentication. Header authentication is not supported.

    Additionally, if the mashup contains multiple apps, you can only use the app where on-demand originates from to filter on-demand reports.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?