Skip to content

Define CRUD operations

If the CRUD (Create, Read, Update, Delete) operations are already defined in the entities, then nothing needs to be changed. All the commands related to CRUD are automatically available in the pages.

For example, on the "Customer Order Details" page, the CRUD buttons New, Delete, and Edit are already available without any edits being done to the projection or client file. This is because CRUD is already enabled in the objects (main entities) that are defined for the page.

CRUD operations can have restrictions set in the entities in the projection file. For example, in the overridden entity CustomerOrder, the definition of CRUD can be changed with:

`set crud = Read, Update;`

When the projection file is deployed, the page that uses the entityset does not allow New and Delete operations any longer. Only the CRUD button Edit is available, which allows the update functionality.