I have the following script in which the parameter must be sent by the user.
I have designed as follows
On the client side, in the snapshot section, I want to send the parameters to the service side. Anything I do will not be sent.
Code: Select all
var reportKey = '9b4c36de43f544fca9279754dd6eb35c';
var snapshotKey = resultCreateSnapshot.ResultItems[0].Key;
// Run report to the snapshot
var req_runReport = new XMLHttpRequest();
var vv='64'
req_runReport.open('PUT', 'http://192.168.76.12:40010/1/reporttemplates/' + reportKey + '/run', false);
req_runReport.setRequestHeader("x-sti-SessionKey", sessionKey);
req_runReport.setRequestHeader("x-sti-DestinationItemKey", snapshotKey);
var event1 ={'code':vv };
event1 = JSON.stringify(event1);
req_runReport.send(event1);
var data = JSON.parse(req_runReport.responseText);