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:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://example.com:port/api/v1/login/ntlm', true);
xhr.withCredentials = true;
xhr.send(null);
$.ajax({ url: 'http://example.com:port/api/v1/login/ntlm',
xhrFields: {
withCredentials: true
} });
Any help very much appreciated!
Many thanks,
Dai