341
Views
5
Comments
Solved
Soft delete

How can I remove the data using soft delete? (without delete the data in database)

2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Divya,

Just add one attribute where you fetch database Isdelete and set property true/false want you want to delete set=true else data set as false
In filter set condition not Isdelete

at a run time you need than add Isdelete attribute in entity and using this you can achieve the soft delete
with the help of assign true/false values In the screen you only filter with not Isdelete so you will get the not delete records.

Thanks and Regards,

Akshay Deshpande

UserImage.jpg
MD MOSHAROF AL AHSAN

hello.. I am also stuck on the same issue. when i'm adding a delete button then it deletes the data from the database but i need to implement soft delete. 

Can you please elaborate more on this how to do it? Thanks in advance.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Mosharof,

Please start a new topic on the forum. Nobody will see your question, as it's hidden inside an old topic that's also marked as Solved.

2024-06-13 07-53-34
Paulo Moreira
 
MVP
Solution

Hi Dhivya,

On the Entities you need to use the Soft Delete technique, add a boolean attribute named IsDeleted, with a default value of False.

Implement a custom wrapper for the CRUD Delete Action, which receives the Id of the record you want to delete, and perform a simple Update on the record, setting the IsDeleted attribute to True.

From this moment on, please make sure that in the Screens of your Application, you are only showing records filtered with IsDeleted = False.

Let me know If there's any additional help you need.

Best regards,

Paulo Moreira

2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Divya,

Just add one attribute where you fetch database Isdelete and set property true/false want you want to delete set=true else data set as false
In filter set condition not Isdelete

at a run time you need than add Isdelete attribute in entity and using this you can achieve the soft delete
with the help of assign true/false values In the screen you only filter with not Isdelete so you will get the not delete records.

Thanks and Regards,

Akshay Deshpande

UserImage.jpg
MD MOSHAROF AL AHSAN

hello.. I am also stuck on the same issue. when i'm adding a delete button then it deletes the data from the database but i need to implement soft delete. 

Can you please elaborate more on this how to do it? Thanks in advance.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Mosharof,

Please start a new topic on the forum. Nobody will see your question, as it's hidden inside an old topic that's also marked as Solved.

2024-06-13 07-53-34
Paulo Moreira
 
MVP
Solution

Hi Dhivya,

On the Entities you need to use the Soft Delete technique, add a boolean attribute named IsDeleted, with a default value of False.

Implement a custom wrapper for the CRUD Delete Action, which receives the Id of the record you want to delete, and perform a simple Update on the record, setting the IsDeleted attribute to True.

From this moment on, please make sure that in the Screens of your Application, you are only showing records filtered with IsDeleted = False.

Let me know If there's any additional help you need.

Best regards,

Paulo Moreira

2019-06-03 19-36-49
Pedro Santos

Hi All 🙂


I have a tutorial video regarding this topic. Make sure to watch it


https://youtu.be/5h_NJl9JFOg 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.