Trying to read a file through a QS-extension object ,Extension Js script can read file in Qlik Sense dekstop version but on server it's not recognizing file when server domain is provided ,
Question 1 : Can we directly call server path as in Case 2& 3 below?
Question 2 : Can we use folder connection on QS server in JS script to access file?
var filenm = 'http://localhost:4848/Extensions/myChart/abc.log; // CASE 1 : SUCCESS when in QS Desktop it works
var filenm = 'C:/Log/abc.log; // CASE 2: Failed while pointing to other directory in QS dekstop
var filenm = 'https://qliksense-test.xyz.com/Extensions/myChart/abc.log; // CASE 3: Failed on server
d3.tsv( filenm, function(data) {
return {
Timestamp: data.Timestamp,
ActiveUsers: data.ActiveUsers ,
Users: data.Users,
};
}, function(error, rows) {
if (error) { //if error is not null,
console.log('error: '+ error);
} else if (index < rows.length) {
yVal1=rows[index].ActiveUsers;
yVal2=rows[index].Users;
++index;
}
else {
//duration(10000);
}
});
...other steps