<?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 On demand report and selections in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/On-demand-report-and-selections/m-p/33103#M1240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the NPrinting API from a mashup page to generate an NPrinting report on-demand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works correctly, however the current selections are not applied. &lt;/P&gt;&lt;P&gt;I noticed that the API call accepts two parameters regarding selections, from the API documentation:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P class="param" style="padding: 10px 0 0 20px; font-weight: bold; color: #444444; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;selections&lt;/P&gt;
&lt;P class="param-desc" style="padding: 0 0 0 20px; color: #777777; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;&lt;SPAN class="param-type" style="font-style: italic;"&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2018/APIs/NP+API/index.html#FieldSelection"&gt;array[FieldSelection]&lt;/A&gt;&lt;/SPAN&gt; The Sense selections (filters) to apply on reports with a Sense connection.&lt;/P&gt;
&lt;P class="param" style="padding: 10px 0 0 20px; font-weight: bold; color: #444444; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;connectionId&lt;/P&gt;
&lt;P class="param-desc" style="padding: 0 0 0 20px; color: #777777; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;&lt;SPAN class="param-type" style="font-style: italic;"&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2018/APIs/NP+API/index.html#string"&gt;String&lt;/A&gt;&lt;/SPAN&gt; The ID of the Sense connection associated with the request. Needed only for selections.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don't understand exactly if these have to be used together and how. My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Does the "connectionID" refer to the id of the NPrinting connection that is tied to the report? Or is it something else?&lt;/LI&gt;&lt;LI&gt;Can I somehow apply the CURRENT selections (I'm in a mashup page and I know the current app) in a simple manner, or do I have to use the "selections" field and manually re-create and provide the full selections specifications to the API?&lt;/LI&gt;&lt;LI&gt;More in general, what is the best approach to apply the current selections to the report?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 12:08:14 GMT</pubDate>
    <dc:creator>master_t</dc:creator>
    <dc:date>2018-03-15T12:08:14Z</dc:date>
    <item>
      <title>On demand report and selections</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/On-demand-report-and-selections/m-p/33103#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the NPrinting API from a mashup page to generate an NPrinting report on-demand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works correctly, however the current selections are not applied. &lt;/P&gt;&lt;P&gt;I noticed that the API call accepts two parameters regarding selections, from the API documentation:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P class="param" style="padding: 10px 0 0 20px; font-weight: bold; color: #444444; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;selections&lt;/P&gt;
&lt;P class="param-desc" style="padding: 0 0 0 20px; color: #777777; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;&lt;SPAN class="param-type" style="font-style: italic;"&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2018/APIs/NP+API/index.html#FieldSelection"&gt;array[FieldSelection]&lt;/A&gt;&lt;/SPAN&gt; The Sense selections (filters) to apply on reports with a Sense connection.&lt;/P&gt;
&lt;P class="param" style="padding: 10px 0 0 20px; font-weight: bold; color: #444444; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;connectionId&lt;/P&gt;
&lt;P class="param-desc" style="padding: 0 0 0 20px; color: #777777; font-family: 'Trebuchet MS', sans-serif; font-size: 15px;"&gt;&lt;SPAN class="param-type" style="font-style: italic;"&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2018/APIs/NP+API/index.html#string"&gt;String&lt;/A&gt;&lt;/SPAN&gt; The ID of the Sense connection associated with the request. Needed only for selections.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don't understand exactly if these have to be used together and how. My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Does the "connectionID" refer to the id of the NPrinting connection that is tied to the report? Or is it something else?&lt;/LI&gt;&lt;LI&gt;Can I somehow apply the CURRENT selections (I'm in a mashup page and I know the current app) in a simple manner, or do I have to use the "selections" field and manually re-create and provide the full selections specifications to the API?&lt;/LI&gt;&lt;LI&gt;More in general, what is the best approach to apply the current selections to the report?&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 12:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/On-demand-report-and-selections/m-p/33103#M1240</guid>
      <dc:creator>master_t</dc:creator>
      <dc:date>2018-03-15T12:08:14Z</dc:date>
    </item>
  </channel>
</rss>

