Posts

SAP UI5 Customized Mobile Keyboard

Image
To customized the mobile keyboard with submit button to trigger the Input control event, add the below code to your onInit function.  Var oInput = this,getView().byId("YourId"); oInput.addEventDelegate({ onAfterRendering:function(){ this.getDomRef("inner").setAttribute("enterkeyhint", "enter"); }.bind(oInput) }); For more detail explanation. Please go through the link below

SAP UI5 Date Picker With Min and Max dates

Image
SAP  UI5 Date Picker With Min and Max dates View1.controller :-  sap.ui.define([ "sap/ui/core/mvc/Controller" ], function(Controller) { "use strict"; return Controller.extend("DemoDatePicker.controller.View1", { onInit: function() { var oDate = this.getView().byId("DP"), oMinDate = new Date(), oMaxDate = new Date(); oMaxDate.setDate(oMaxDate.getDate() + 30); oDate.setMinDate(oMinDate); oDate.setMaxDate(oMaxDate); }, onChange: function() { var oDate=this.getView().byId("DP"), oMinDate = new Date(), oMaxDate = new Date(); oMaxDate.setDate(oMaxDate.getDate()+30); oDate.setMinDate(oMinDate); oDate.setMaxDate(oMaxDate); } }); }); View1.xml :- <mvc:View controllerName="DemoDatePicker.controller.View1" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m" xmlns:core="sap.ui.core"...