Posts

Showing posts from 2023

Update each dependency in package.json to the latest version

npm i -g npm-check-updates ncu -u npm install Reference from : stackoverflow.com

SAPUI5 - Client Model for sap.m.Select to show more that 100 rows

var oData = { results: [     { key: "1", text: "01" },      { key: "2", text: "02" },     ...      { key: "200", text: "200" } ] }; var oModel = new JSONModel(oData);  oModel.setSizeLimit((oData.results.length));  this.setModel(oModel, "myData"); < Select items = " {myData>/results} " >      < items >           < core : Item text = " {myData>text} " key = " {myData>key} " />      </ items >      < customData >           < core : CustomData key = " required " value = " true " ></ core : CustomData >      </ customData > </ Select >

Force download with fetch function

SAPUI5 - Bind oData in XML view

SAPUI5 - Reference to image path

var sRootPath = jQuery.sap.getModulePath("<application_package_name>"); var sImagePath = sRootPath + "/img/logo.png";