on 2024 Dec 09 9:28 AM
Hello,
I'm quite confused. I'm trying to call an Action in my Bound UI5 View. It should be straightforward, but when trying the commonly accepted approach:
async onPress() {
var oModel = this.getView().getModel();
var oActionODataContextBinding = oModel.bindContext("/someAction()");
oActionODataContextBinding.execute().then(
function() {
var oActionContext = oActionODataContextBinding.getBoundContext();
console.table(oActionContext.getObject().value);
}.bind(this)
);
}
I get the following error:
EventProvider.fireEvent: Event Listener for event 'press' failed during execution. - Error: The binding must be deferred
I'm still a bit new to making UI5 Freestyle Application. So I someone could guide me through what is going on.
Thanks.
Request clarification before answering.
Try `/someAction(...)` as described in OData Operations
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
49 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.