Hi Javi,
I am new to OX, so need some suggestions.
Usually a production system would not do a direct Delete but usually implement a 'Soft Delete' in which a flag like 'is_active'.
A true (or 1) would mean usable and a false (or 0) would mean not listable(or available for other CRUD) activities.
How can i implement a similar functionality using OX. can i intercept the delete to do a soft-delete and get the list to show only the isActive=true entities?
regards,
Ram
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can define your own action to set any property value. And use baseCondition to filter the list date. Your question is the same as I asked one month ago.
The chapter 10 of the book explains with detail how to add 'Soft Delete' to your application.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since this is the question that comes up when searching this forum for the delete keyword and since this is a 12 years old question, the once upon a time known as chapter 10 of the book is now gone and the link above isn't valid anymore.
The up to date relevant doc is Lesson 24, here, just in case others land here like me, looking for soft delete in OX.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Javi,
I am new to OX, so need some suggestions.
Usually a production system would not do a direct Delete but usually implement a 'Soft Delete' in which a flag like 'is_active'.
A true (or 1) would mean usable and a false (or 0) would mean not listable(or available for other CRUD) activities.
How can i implement a similar functionality using OX. can i intercept the delete to do a soft-delete and get the list to show only the isActive=true entities?
regards,
Ram
Of course YES.
You can define your own action to set any property value. And use baseCondition to filter the list date. Your question is the same as I asked one month ago.
The chapter 10 of the book explains with detail how to add 'Soft Delete' to your application.
Thanks njchenyi,
I will check this.
Since this is the question that comes up when searching this forum for the
deletekeyword and since this is a 12 years old question, the once upon a time known as chapter 10 of the book is now gone and the link above isn't valid anymore.The up to date relevant doc is Lesson 24, here, just in case others land here like me, looking for soft delete in OX.