Hello all,
I am working on small application I am facing one problem
I am writing code as below
var datas = "AMOL"; | ||
var url = "proxy/sap/opu/odata/SAP/Z_HR_USR_CREATION_SRV"; |
var oModel = new sap.ui.model.odata.ODataModel(url,true); | ||
var form = this.getView().byId("Homeform"); | ||
form.setModel(oModel); | ||
form.bindElement("/ZhrUserSet('datas')"); |
Its not showig output
but if i pass value directly its showing output
like
form.bindElement("/ZhrUserSet('AMOL')"); |
for above code its showing error
The following problem occurred: HTTP request failed400,Bad Request,{"error":{"code":"005056A509B11EE1B9A8DBD9EA7BB778","message":{"lang":"en","value":"Malformed URI literal syntax"},"innererror":{"transactionid":"55CCE0B1F1640140E1000000C0A80425","timestamp":"20150814094157.5491790","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP NW Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"}}}} -
Please help me with this