<?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 Building Bespoke NPrinting OnDemand button for Qlikview in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Building-Bespoke-NPrinting-OnDemand-button-for-Qlikview/m-p/1775366#M13726</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Due to the limitations of NPrinting ONdemand and Locked fields, Triggers and Variables we need to add a button to our dashboard that the user can click that starts an ondemand request.&amp;nbsp; By clicking the 'Create Report' button it clears all locked fields and forces the user to make selections.&amp;nbsp; Due to locked fields we cant rely on the user to clear/unlock before running the Ondemand repor from the standard AccessPoint solution.&lt;/P&gt;&lt;P&gt;Firstly, can anyone help on authenticating from a button onlick as per API Documenation:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="token comment"&gt;// Plain javascript&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token comment"&gt;// &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; xhr &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;XMLHttpRequest&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;xhr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;open&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'GET'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'&lt;A href="http://example.com:port/api/v1/login/ntlm" target="_blank"&gt;http://example.com:port/api/v1/login/ntlm&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;true&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;xhr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;withCredentials &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;true&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;xhr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;send&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;null&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token comment"&gt;&lt;BR /&gt;// Jquery&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token comment"&gt;// &lt;A href="http://api.jquery.com/jquery.ajax/" target="_blank"&gt;http://api.jquery.com/jquery.ajax/ &lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ajax&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN&gt; url&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'&lt;A href="http://example.com:port/api/v1/login/ntlm" target="_blank"&gt;http://example.com:port/api/v1/login/ntlm&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;xhrFields&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;withCredentials&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;true&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help very much appreciated!&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Dai&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:48:20 GMT</pubDate>
    <dc:creator>Senor_Dai</dc:creator>
    <dc:date>2024-11-16T00:48:20Z</dc:date>
    <item>
      <title>Building Bespoke NPrinting OnDemand button for Qlikview</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Building-Bespoke-NPrinting-OnDemand-button-for-Qlikview/m-p/1775366#M13726</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Due to the limitations of NPrinting ONdemand and Locked fields, Triggers and Variables we need to add a button to our dashboard that the user can click that starts an ondemand request.&amp;nbsp; By clicking the 'Create Report' button it clears all locked fields and forces the user to make selections.&amp;nbsp; Due to locked fields we cant rely on the user to clear/unlock before running the Ondemand repor from the standard AccessPoint solution.&lt;/P&gt;&lt;P&gt;Firstly, can anyone help on authenticating from a button onlick as per API Documenation:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="token comment"&gt;// Plain javascript&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token comment"&gt;// &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; xhr &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;XMLHttpRequest&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;xhr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;open&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'GET'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'&lt;A href="http://example.com:port/api/v1/login/ntlm" target="_blank"&gt;http://example.com:port/api/v1/login/ntlm&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;true&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;xhr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;withCredentials &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;true&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;xhr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;send&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;null&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="token comment"&gt;&lt;BR /&gt;// Jquery&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token comment"&gt;// &lt;A href="http://api.jquery.com/jquery.ajax/" target="_blank"&gt;http://api.jquery.com/jquery.ajax/ &lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;$&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ajax&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN&gt; url&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'&lt;A href="http://example.com:port/api/v1/login/ntlm" target="_blank"&gt;http://example.com:port/api/v1/login/ntlm&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;xhrFields&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;withCredentials&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;true&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help very much appreciated!&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Dai&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Building-Bespoke-NPrinting-OnDemand-button-for-Qlikview/m-p/1775366#M13726</guid>
      <dc:creator>Senor_Dai</dc:creator>
      <dc:date>2024-11-16T00:48:20Z</dc:date>
    </item>
  </channel>
</rss>

