Hi,
i am trying to get a client business object running in which i perform a server business object call. How can i return the async ajax result of the businnes object call?
Hello dcyborra,
You have to use a promise.
For Example:
try { return new Promise(function (resolve, reject) { var boSuccess = function(result) { resolve({outputParam: result}); }; var boFail = function(result) { reject({outputParam: result}); }; Simplifier.BusinessObject.test_m002.getSomeListData({}, boSuccess, true, false, boFail); }); } catch (e) { throw e; }
You must be logged in to reply to this topic.
Enter the destination URL
Or link to existing content