Posts

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";

SAPUI5 - Clear Cache on SAP Netweaver Gateway

Image
# Reference :  https://blogs.sap.com/2017/12/22/cache-cleanup-in-sap-netweaver-gateway/ # Programs to Delete Cache      -  /ui2/invalidate_client_caches      -  /ui2/invalidate_global_caches ( Invalidate global cache)      -  /ui5/app_index_calculate  (R ecalculate index of an app)     -  /ui5/del_odata_metadata_cache  ( Delete metadata cache) # T-codes for cache cleanup      Execute the following T-codes     -  Clear front end cache                /n/iwfnd/cache_cleanup     -  Clear backend Cache           /n/iwbep/cache_cleanup     -  Clear Global Cache           /nsmicm                     goto->HTTP Plugins->Server Caches->Invalidate globally

JavaScript : window.open with Http Header

     fetch ( sUrl , {                headers : { ' myHeader ' : ' ABCD ' }           } ) // FETCH BLOB FROM IT           . then ( ( response ) => response . blob ()) . then ( ( blob ) => { // RETRIEVE THE BLOB AND CREATE LOCAL URL      var _url = window . URL . createObjectURL ( blob ) ; window . open ( _url , " _blank " ) . focus () ; // window.open + focus } )           . catch ( ( err ) => {      console . log ( err ) ;      } ) ; Reference from : stackoverflow.com

SAP PI/PO - Config JDBC Receiver

Image