Marvin
06/24/2022, 3:06 AMconst layout = container.getComponent('Layout');
if (layout) {
layout.addChildView('Summary', function () {
return new EditOrderButtonView({ container: container });
});
}
Is there not a way to get the routerArguments from the Order Details View that this is loaded into?
Is there an alternate way to get the routerArguments or do I have to override the Order Details View?Michelle Beutler
07/08/2022, 4:29 PMMichelle Beutler
07/08/2022, 5:05 PMinitialize: function (options) {
this.application = this.options.container;
this.parentView = this.application.getLayout().getCurrentView();
this.documentType = this.parentView.options.routerArguments[0];
this.documentId = this.parentView.options.routerArguments[1];
}
Marvin
07/08/2022, 6:35 PM