on 04-28-2017 2:07 PM
Hi All,
I have created a table in frontend (in SAP UI5) and backend is ECC system. I have used ODATA to get the data into the table cells. I redefined the 'GET_ENTITYSET' method of my class for the same.
Now I want to execute one of the rows of the table. Hence I want to pass a parameter to backend, where various operations will be performed ( like updating few standard database tables ). I dont understand which method will be called in this case ? I tried to use Odata Update , but it seems that I am doing it wrong. Please guide me -
Regards
Meenakshi
If you are looking to update the selected table row in the backend by calling update function of the ODataModel then you ahev to pass alongwith the entity set name the key field as well against which the record is supposed to be updated in the back end.
oModel1.update("/objidSet("+selectedUserID+")", oEntry, {success:function(){},error:function(){}});
assuming selectedUserID is the key field of the objidSet entity set.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.