Hello. I'm showing a view in Modal using on Invoic...
# suitecommerce
b
Hello. I'm showing a view in Modal using on Invoice.OpenList.View like this.
Copy code
return new MyCustomModalView({
                    application: this.application,
                    invoices: selectedInvoices,                    
                    from:'openlist',                    
                    view: this,
                }).showInModal();
It worked before but somehow it is not working. When I go to that view, its
initialize()
is called. Is something updated in SC 2023.1?
initialize()
is called, but
getContext()
seems like not called.
s
Hmm. It’s been a while since I wrote about it (https://developers.suitecommerce.com/show-content-in-a-modal.html) but that’s an unusual way of triggering showing the modal.
Normally you would use the Layout component’s showContent function rather than a view’s own version of that method. So execution order may be out of whack, or it’s not being triggered at all
b
Thank you