cancel
Showing results for 
Search instead for 
Did you mean: 

Navigating from list to next screen based on list value WEBIDE getproperty() is not defined?

hiltonsam7
Explorer
0 Kudos
239

hi

i am facing problem while navigating from list to another screen with listvalue in webIDE full stack ,

the issue thats keep on repeating is getProperty() is not defined ( i am not using any template it is "standard application")

view1 controller:

error:

please give me the solutions

Accepted Solutions (1)

Accepted Solutions (1)

saurabh_vakil
Active Contributor
0 Kudos

Are you using a named model or default model without any name? If it is a named model you can try the below code.

alert("navigating " + evt.getSource().getBindingContext("<MODEL-NAME>"));

Answers (2)

Answers (2)

hiltonsam7
Explorer
0 Kudos

ya its working .. thanks dude !!!

hiltonsam7
Explorer
0 Kudos

hi saurabh

ya that is fine but its not navigating from that screen thats the issue ... see the below code

var selectedProductId = evt.getSource().getBindingContext().getProperty("Ponumber");

var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo("view2", { productId: selectedProductId

its showing that getproperty() is undefined ..?