Posted 8 August 2019, 5:16 am EST
Hi Ashwin,
Thank your for your feed back we are working with 5.20191.615 but there are some fixes have been given by wijmo in upgraded version i.e. 5.20191.615 but the abstraction has been restricted which causes the issue of _sendHttpReesut request.
for your reference , Please find the attached code. The below code I have used for the custom service calling but after upgrading.Its breaking.
[b]wijmo.olap._ServerConnection.prototype._getUrl = function (command, token, fieldName) {
var url = old_getUrl.call(this, command, token, fieldName);
if (command.toLowerCase() != ‘result’) {
return url;
}
return ‘<<<Service_URL>>>’;
}
let olapData
var customDefer
wijmo.olap._ServerConnection.prototype._sendHttpRequest = function (cmd, settings) {
switch (cmd) {
case 'Analyses': //
case 'Status': //
return;
case 'Result':
if (!settings) {
settings = {};
}
// change the request type to POST
settings.method = 'POST';
// pass the view definition to the server.
settings.data = {
};
// pass custom data to the server.
settings.data.customData = {
test1: this._ng.customData
}
customDefer = this._ng.customDefer;
that.old_success[that.id] = settings.success;
settings.success = function (resp) {
that.old_success[that.id](resp);
that.sub$.next(1);
}
settings.error = function (resp) {
console.log('error');
}
that.old_sendHttpRequest.call(this, cmd, settings);
}
}
[/b]
Regards,
Sachin