I am using routing concept for navigation as below provided as example by Sai Vellanki
newpagecreateOperation: function(oEvent) { this._showObject1(oEvent.getSource() },
_showObject1: function(oItem) { this.getRouter().navTo("view2id" { //objectId: oItem.getBindingContext().getProperty("field1") }); objectId: oItem.getBindingContext("field1").getPath().substr(1); //Cannot read property 'getPath' of undefined },
navigation is successful with above code. But cannot pass parameters.
facing Cannot read property 'getPath' of undefined while navigating to view2.
The Example in the link of Routing with parameters displays a list item, in my case this is a footer button but not a list.
Can you share a similar sample with routing?