Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CRUD in SAPUI5

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

Former Member
replied

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 Let’s code CRUDQ and Function Import operations in OData service! (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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question