Menu

Can I intercept Delete & make a'Sof...

Ram
2012-03-04
2024-03-16
  • Ram

    Ram - 2012-03-04

    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

     
  • Yi Chen

    Yi Chen - 2012-03-05

    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.

     
  • Ram

    Ram - 2012-03-05

    Thanks njchenyi,
    I will check this.

     
  • Lucio Crusca

    Lucio Crusca - 2024-03-16

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB