on 06-30-2017 10:04 AM
Hi,
I'm working on a assignment where i need to run the hana stored procedure based on a button click with few conditions. What is the best way to do that ? by checking the blogs i think that we can do it by creating xsjs file or is there any other way. Can you provide any example to do that
thanks,
Anurag
Hi Anurag,
First i would like to understand how you are creating Procedures.Either Ctalog Procedures or hdb Procedures.
If you are creating using catalog Procedures then you can call the procedure using xsjs file.
For my assignemnt i done in this it is worked out for me.
Regards,
Shekar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anurag,
No need of using Jquery AJAX Call.
Use sap.ui.modle.json.jsonModel until unless if somebody is strictly asking u to go for jquery then use jquery otherwise not required.
var a= "url";
var model = new sap.ui.model.json.JSONModel();
model.loadData(a,object);
here if u are passing any inputs to procedure then u use the object otherwise not required.
thanks a lot Shekhar for your inputs.
I have used jquery AJAX call with the GET method and it is working fine.But its good i came to know one more method to do the same and sticking to the UI5 given methods :).Internally model.loadData also triggers the GET method with the parameters appended to that.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.