Skip to Content
0
Sep 07, 2018 at 05:40 PM

sapui5 - Popup - Navigate to another xml view

756 Views Last edit Sep 07, 2018 at 05:43 PM 2 rev

Dear UI5 experts

I am extending an fiori app and have replaced a view and placed a popup. Now my requirement is when I click the close button in the popup I want to open an xmlview.

code.

sap.m.MessageBox.error( "Error Message - some error", 
{ icon: sap.m.MessageBox.Icon.ERROR, title: "Confirmation Error", onClose: function (oAction) { <br> this.router = sap.ui.core.UIComponent.getRouterFor(this); <br>this.router.navTo("customview"); } } );

can some one pls advise on the error I am getting.

'navTo' of undefined