I have an ABAP RAP action that looks similar to the following:
static action staticAction parameter InboundParams result [1] OutboundParams external 'OutParam';
It's a static action with abstract entities for inbound and outbound parameters. I am calling this action from a UI5 app with code similar to this:
var fnActionSuccess = function() {
// how do I access 'OutParam' from here?
};
var fnActionError = function(oError) {
MessageBox.error(oError.message);
};
var oAction = oObject.getObjectBinding();
oAction.setParameter("inboundValue", "Value");
oAction.execute().then(fActionSuccess, fActionError);
I can set parameters prior to the call to the action. However, what I'm not sure of is when the promise is fulfilled successfully, how do I get access to the action's outbound parameter values that were provided by the action?