Mathieu Roll
Has successfully completed the online course Introduction
Has successfully completed the online course Intermediate (200)
Has successfully completed the online course Advanced (300)
Has successfully completed the online course Basics (100)
5 years ago
#10205
::
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;
}