maybe i'm not thinking straight here, but how do i set the return value of a function based upon the outcome of a dsRequest, for example,
I have a function called canSaveForm has a return expectation of true or false, inside the function i call a valuesManager.saveData. In the callback i want to check a response from the server and given that response return a value of true or false to the calling function?
Is this even posible?
I have a function called canSaveForm has a return expectation of true or false, inside the function i call a valuesManager.saveData. In the callback i want to check a response from the server and given that response return a value of true or false to the calling function?
Is this even posible?