Sha256: 283493b139391e596ea4da2b7803fad83943b4c944055ae89d6cda7362179804
Contents?: true
Size: 975 Bytes
Versions: 2
Compression:
Stored size: 975 Bytes
Contents
sap.ui.define(["sap/ui/core/mvc/Controller", "sap/m/MessageToast", "sap/ui/model/odata/ODataModel", "sap/ui/model/resource/ResourceModel"], function (Controller, MessageToast, ODataModel, ResourceModel) { "use strict"; return Controller.extend("vibert.controller.CultivarList", { onInit : function() { }, onCreatePress: function (evt) { var oRouter = sap.ui.core.UIComponent.getRouterFor(this); oRouter.navTo( "cultivar_create" ); }, onSelectionChange: 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); oRouter.navTo( "cultivar_detail", {id: sToPageId} ); }, }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fiveapples-0.0.4 | lib/ui5/controller/CultivarList.controller.js |
fiveapples-0.0.3 | lib/ui5/controller/CultivarList.controller.js |