Skip to Content
1
Nov 28, 2018 at 04:32 AM

sap.ui.core.UIComponent.getRouterFor(this) undefined

2309 Views

hi all,

I am Using this event bus concept in middle of my project Flexiable Layout Event Bus where i can navigate till the 3rd page but when i try in 3rd page to navigate to detail page by using

onItemPressed: function (oEvent) {
			
			var oItem, oCtx, oRouter;
			oItem = oEvent.getParameter("listItem");
			oCtx = oItem.getBindingContext("Step_model");
			sap.ui.core.UIComponent.getRouterFor(this).navTo("wmInstance",{
				query : {
					JOBNR : oCtx.getProperty("JOBNR")
				}
			});

error coming at sap.ui.core.UIComponent.getRouterFor(this) saying

when i see in console i am getting this way

i Observed that in other page navigation i don't see any bus in this while when i used that event bus i got but in this
how to get the parent this to make accessible to make this sap.ui.core.UIComponent.getRouterFor(this) work.

Regards,

kiran rachamalla.

Attachments

console-error.png (11.8 kB)