lib/ui5/controller/CultivarList.controller.js in fiveapples-0.0.2 vs lib/ui5/controller/CultivarList.controller.js in fiveapples-0.0.3

- old
+ new

@@ -18,29 +18,18 @@ }, onSelectionChange: function (evt) { var oTable = this.getView().byId("cultivar_table"); - var iIndex = oTable.getSelectedIndex(); + var iIndex = oTable.getSelectedIndex(); var oCtxt = oTable.getContextByIndex(iIndex); var sToPageId = oCtxt.getProperty("id") ; var oRouter = sap.ui.core.UIComponent.getRouterFor(this); -// MessageToast.show(" navTo cultivar_detail -->"+sToPageId); oRouter.navTo( "cultivar_detail", {id: sToPageId} ); }, - //onDisplayPress: function (evt) { - //var oTable = this.getView().byId("cultivar_table"); - //var iIndex = oTable.getSelectedIndex(); - - //var oCtxt = oTable.getContextByIndex(iIndex); - //var sToPageId = oCtxt.getProperty("ID") ; - - //var oRouter = sap.ui.core.UIComponent.getRouterFor(this); -//// MessageToast.show(" navTo cultivar_detail -->"+sToPageId); - //oRouter.navTo( "cultivar_detail", {ID: sToPageId} ); - //} + }); });