on 03-03-2015 1:22 PM
HI
I have seen that to remove an entry from the model
I can use model.remove(entry);
My question: does it also delete the entry from the database?
In case I would like to delete an entry from the db, do I
have to implement a new service?
Thank you for your support.
Regards
Yuval
YUVAL PEERY wrote:
My question: does it also delete the entry from the database?
In case I would like to delete an entry from the db, do I
have to implement a new service?
OData Model is server side model and hence you have to implement the logic in OData service in the backend to handle CRUD operations.
you need not to implement new service but need to implement corresponding CRUD methods in DPC_EXT class as I mentioned in my blog (Assuming you are talking about OData services in SAP Gateway)
Once it is done then from UI5 application, you can perform CRUD operations as described here OData Write Support - What's New in SAPUI5 - SAP Library
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
anything you do in the model (most likely) will only be done on the model at the client side.. if you do an odata model post or ajax call to the xsjs and then do an interaction to the db from the server side javascript, only then you will delete from the db.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.