<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NPrinting REST API and OnDemandRequestFilters in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102091#M3628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the NPrinting REST API to trigger OnDemandReport generation with subsequent download of the generated report file into my Java application. So far all works fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we have a multi tenant application each tenant is supposed to only see his data. For this I created a global filter and attached that to the NPrinting report. Using the API I can change the filter field value and the report is created correct for the appropriate tenant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if this is a thread safe solution? What if 2 tenants request the same report at the same time and my code is changing the global filter. Is the last one the winner and both clients would receive the report with the same data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I was thinking that I don't attach the filter directly to the report but use the OnDemandRequestFilters when triggering the OnDemandReportRequest. Unfortunately I don't find any documentation about this. The API reference only states that there is an object called OnDemandRequestFilters but with no further information.What is the documented "initialBookmark" supposed to be? Is that a filter Id? Do you have any code samples for the REST API and how to use the OnDemandRequestFilters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 11:55:19 GMT</pubDate>
    <dc:creator>mredeker</dc:creator>
    <dc:date>2018-09-24T11:55:19Z</dc:date>
    <item>
      <title>NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102091#M3628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the NPrinting REST API to trigger OnDemandReport generation with subsequent download of the generated report file into my Java application. So far all works fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we have a multi tenant application each tenant is supposed to only see his data. For this I created a global filter and attached that to the NPrinting report. Using the API I can change the filter field value and the report is created correct for the appropriate tenant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if this is a thread safe solution? What if 2 tenants request the same report at the same time and my code is changing the global filter. Is the last one the winner and both clients would receive the report with the same data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I was thinking that I don't attach the filter directly to the report but use the OnDemandRequestFilters when triggering the OnDemandReportRequest. Unfortunately I don't find any documentation about this. The API reference only states that there is an object called OnDemandRequestFilters but with no further information.What is the documented "initialBookmark" supposed to be? Is that a filter Id? Do you have any code samples for the REST API and how to use the OnDemandRequestFilters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102091#M3628</guid>
      <dc:creator>mredeker</dc:creator>
      <dc:date>2018-09-24T11:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102092#M3629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each single request is isolated so each will be processed with its filters. This answer is based on the way of work of Qlik NPrinting. Qlik NPrinting can manage multiple requests at the same time, the Scheduler coordinates the work among Engines.&lt;/P&gt;&lt;P&gt;So In my opinion you don't risk to have two requests with different filters that come back with the same data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry but I don't have code &lt;SPAN style="font-size: 13.3333px;"&gt;samples on this topic more than what you can see in the help site&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When applicable please mark the appropriate replies as CORRECT &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2001" data-containertype="14" data-objectid="14806" data-objecttype="102" href="https://community.qlik.com/docs/DOC-14806"&gt;https://community.qlik.com/docs/DOC-14806&lt;/A&gt;&lt;SPAN&gt;. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 08:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102092#M3629</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-09-25T08:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102093#M3630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I only have one filter and I am using the REST API to change this filters field value, it could be that my 2 threads each change the value and then I call the REST API for the OnDemandReportRequest. In this case both report generations use the filter field value from the last change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to stop my to threads right before I call the OnDemandRequest and was able to verify that both reports are identical. This would be a show stopper for this scenario &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; Of course I could synchronize the calls to the REST API which would be not so nice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to create a new filter for each request and attach it to the OnDemandRequest which brings me back to my second part of the question, how are OnDemandRequestFilters used??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102093#M3630</guid>
      <dc:creator>mredeker</dc:creator>
      <dc:date>2018-09-25T09:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102094#M3631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will have a problem trying to modify the filter and requesting two reports at the same time. You are right, it is not thread safe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have many solution: &lt;/P&gt;&lt;P&gt;Use JWT to authenticate your user and have Section Access or User filters in place.&lt;/P&gt;&lt;P&gt;Use OnDemandRequestFilters AdditionalFilters to specify the GUID of the Filters to apply&amp;nbsp; (so in theory you can have one filter per tenant and use its ID to identify the filter).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102094#M3631</guid>
      <dc:creator>T0mm450-3rc0l3</dc:creator>
      <dc:date>2018-09-26T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102095#M3632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tommaso, for the confirmation &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;It sounds like you used the OnDemandRequestFilters JSON object already. &lt;/P&gt;&lt;P&gt;Do you have any code snippet for me?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 06:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/102095#M3632</guid>
      <dc:creator>mredeker</dc:creator>
      <dc:date>2018-09-28T06:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1605958#M25185</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Has anyone used&amp;nbsp;&lt;SPAN&gt;OnDemandRequestFilters&amp;nbsp;JSON object? I tried multiple ways:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;{\"filters\": { \"additionalFilters\" : [ { \"ColumnName: value\" } ] } }&lt;/LI&gt;&lt;LI&gt;{\"filters\" : { \"additionalFilters\" : [ { \"ColumnName\": \"value\" } ] } }&amp;nbsp; &amp;nbsp; with this syntax request is getting failed.&lt;/LI&gt;&lt;LI&gt;{\"filters\" : { \"additionalFilters\" : [ {\"Nprinting filter ID\" } ] } }&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;filter ID like "xxxxxxxx-a922-4135-aaad-xxxxxxxx"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;but nothing works. looking forward for help from the experts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Additional Info: we are trying to implement on-demand report generation from mashup portal in .net code. I am able to create the session and on-demand request, report is also getting generated (downloading all data) but we are stuck at passing filter value(s). I tried to pass the filter value selected in mashup using "selections" property but that didn't worked after that trying to use "filters" that is also not working.&lt;/P&gt;&lt;P&gt;Please let me know if any more details required.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tauceef&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1605958#M25185</guid>
      <dc:creator>tauceef</dc:creator>
      <dc:date>2019-07-25T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1605991#M25188</link>
      <description>&lt;DIV class="c-virtual_list__item" tabindex="-1" role="listitem" aria-expanded="false"&gt;
&lt;DIV class="c-message c-message--light c-message--adjacent" role="document" data-qa="message_container" data-qa-placeholder="false"&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;I suggest you to create a new conversation for new questions.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;Please post also the error message you get.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;In the&amp;nbsp;additionalFilters&amp;nbsp; parameter of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;OnDemandRequestFilters you must insert the ID of existing Qlik NPrinting filtrers in the app you are using.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="c-virtual_list__item" tabindex="-1" role="listitem" aria-expanded="false"&gt;
&lt;DIV class="c-message c-message--light c-message--adjacent c-message--last" role="document" data-qa="message_container" data-qa-placeholder="false"&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;If you want to add real time selection you need to use the field OnDemandRequest.selections. Refer to&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/June2019/APIs/NP+API/index.html?page=90" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/June2019/APIs/NP+API/index.html?page=90&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;Best Regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="c-message__content c-message__content--feature_sonic_inputs" data-qa="message_content"&gt;&lt;SPAN class="c-message__body" data-qa="message-text"&gt;Ruggero&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:53:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1605991#M25188</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2019-07-25T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1895249#M35181</link>
      <description>&lt;P&gt;Hi Ter,&lt;/P&gt;
&lt;P&gt;Is it possible to use JWT authentication to use on demand reporting API&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 06:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1895249#M35181</guid>
      <dc:creator>fabdulazeez</dc:creator>
      <dc:date>2022-02-21T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: NPrinting REST API and OnDemandRequestFilters</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1896378#M35205</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/10066"&gt;@fabdulazeez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please avoid to comment 3 years old posts like this because things could be changed in a so long time, and, please, also be on topic. I suggest you to open a new conversation with a meaningful subject and invest all the needed time to explain your question. This will help other readers to help you.&lt;/P&gt;&lt;P&gt;About On-Demand refer to&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/On-Demand/Intro-On-Demand.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/On-Demand/Intro-On-Demand.htm&lt;/A&gt;. JWT authentication is mentioned but we don't know if you want to use On-Demand for Qlik Sense or QlikView.&lt;/P&gt;&lt;P&gt;About API refer to&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/Extending/Intro-Extending.htm" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/Extending/Intro-Extending.htm&lt;/A&gt;. Requirements for authentication is mentioned there.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 08:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/NPrinting-REST-API-and-OnDemandRequestFilters/m-p/1896378#M35205</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-02-23T08:32:36Z</dc:date>
    </item>
  </channel>
</rss>

