I am building an extension that creates a child vi...
# suitecommerce
k
I am building an extension that creates a child view for an order in the OrderHistory Detail page. I need to pass the OrderHistory.Model into the view. I can’t figure out a way to do this with the Extensibility API. I am able to get it using the following line of code:
Copy code
container.getLayout().getCurrentView().model
Is there a way to obtain the model in the parent view using the Extensibility API? What is the best practice method for obtaining the model of a parent view in an extension?
s
I think the way you're using is probably the best way of doing it in this scenario
k
Thanks for the quick feedback. I appreciate it.
k
IF that isn’t working you could prototype the child views object for the order details view. You should have access to the model there..
k
@Kearobi, thanks for the suggestion.