Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Senor_Dai
Partner - Creator II
Partner - Creator II

Building Bespoke NPrinting OnDemand button for Qlikview

Hello,

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.  By clicking the 'Create Report' button it clears all locked fields and forces the user to make selections.  Due to locked fields we cant rely on the user to clear/unlock before running the Ondemand repor from the standard AccessPoint solution.

Firstly, can anyone help on authenticating from a button onlick as per API Documenation:

// Plain javascript
// https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials

var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://example.com:port/api/v1/login/ntlm', true);
xhr
.withCredentials = true;
xhr
.send(null);

// Jquery
// http://api.jquery.com/jquery.ajax/
$.ajax({ url: 'http://example.com:port/api/v1/login/ntlm',
xhrFields
: {
   withCredentials
: true
} });

 

Any help very much appreciated!

Many thanks,

Dai

 

Labels (5)
0 Replies