Lets say I am adding a ChildView like this. ```co...
# suitecommerce
m
Lets say I am adding a ChildView like this.
Copy code
const 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?
m
Did you get anywhere on this? I am trying to do this as well and need to know the order number being displayed.
Actually, I was able to find them! This is in the initialize of the view that is going to display your template.
Copy code
initialize: 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];
                
            }
m
Thanks. I didn't. I ended up parsing the path myself.