Closed wozjac closed 1 year ago
Hi @wozjac,
thanks for using the feature showcase.
Both issues should be fixed with UI5 Version 1.110.0 coming most likely next week / the week after.
Please excuse any issues. Scenario two was a limitation for unbound actions, for bound actions it should already work.
If you have to use a previous UI5 version you can fallback to the UI5 default: https://sapui5.hana.ondemand.com/#/topic/b54f7895b7594c61a83fa7257fa9d13f and the result will be available through the bound context of the operation.
Example:
const oOperation = this.base.getModel().bindContext('/unboundAction(...)')
oOperation
.setParameter('param1', 'value 1')
.setParameter('param2', 'value 2')
.setParameter('param3', 'value 3')
.execute()
.then(
function () {
//some logic
}.bind(this),
function (oError) {
MessageBox.error(oError.message)
}
)
Hope that helps & BR, Marten
Thanks for explanation!
Hi @schiwekM,
is that also an issue in 1.108 LTS release? Will it be patched also there?
Hello,
Scenario 1
ControllerExtension
, invokes action passing only the model (unbound action).operations.js
.Scenario 2
req.reply
passing a result object.BR, Jacek