How can I remove the data using soft delete? (without delete the data in database)
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 falseIn 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 deletewith 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
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.
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.
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
Hi All 🙂
I have a tutorial video regarding this topic. Make sure to watch it
https://youtu.be/5h_NJl9JFOg