on 2025 May 19 11:20 PM
I have implemented the same settings as following doc but it doesnt work, I am trying to open sap.fe.templates.ObjectPage.Component in edit while navigating from list page, anyone know nay setting iam missing?
https://sapui5.hana.ondemand.com/#/topic/8665847a17a14e1abdcebe3e235c8c68
Appreciate the help!
Request clarification before answering.
I created a sample how to do it here:
https://github.com/gregorwolf/bookshop-demo/pull/123/files
sap.ui.define(
['sap/ui/core/mvc/ControllerExtension'],
function (ControllerExtension) {
'use strict';
return ControllerExtension.extend('orders.ext.ObjectPageExt', {
override: {
routing: {
// Method to handle the binding context set up after navigation to this view.
onAfterBinding: function (bindingContext) {
// Update the button state based on the new binding context.
// Get the current binding context of the view.
const bindingContext2 = this.base.getView().getBindingContext();
if(bindingContext.getBinding().getPath().startsWith("/Orders")){
bindingContext2.requestObject().then(
function (dataObject) {
this.base.editFlow.editDocument(bindingContext2)
}.bind(this)
);
}
},
}
}
});
}
);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is your odata draft enabled?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
21 | |
16 | |
8 | |
8 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.