Data in the database needs to be toggled

I have an entity backed record and I am calling a process model which updates a field in the DB table using related action when the check box is ticked. When I launch the process model using Related Action, the process updates the value in DB, but I need to update the previous value of the field when the check box is unchecked using the same process..

Can anyone help me out?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    It sounds like, correct me if wrong....
    The value on a record is A
    You need a value to be 'B' when a checkbox is clicked
    You need the value to go back to 'A' when checkbox is unchecked

    If that is the case, you will need to store the orig and new values in the DB. Then, you can either update the new one to the old one or just have a condition on which column to pull.

Reply
  • 0
    Certified Lead Developer

    It sounds like, correct me if wrong....
    The value on a record is A
    You need a value to be 'B' when a checkbox is clicked
    You need the value to go back to 'A' when checkbox is unchecked

    If that is the case, you will need to store the orig and new values in the DB. Then, you can either update the new one to the old one or just have a condition on which column to pull.

Children
No Data