SAPUI5: Dynamic Hana DB Connection Using XSJS? -
var omodel = new sap.ui.model.json.jsonmodel("url", false, "uname", "psd"); sap.ui.getcore().setmodel(omodel); var connection = $.db.getconnection(); var statement = null; var resultset = null; try { statement = connection.preparestatement(select_all_personals_query); resultset = statement.executequery(); var datapersonal;
how pass url, username, password, including have .xsacess file or need change or add code in acess file. .xsacess {"exposed" : true ,"authentication" : [{"method" : "basic"}]}
Comments
Post a Comment