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
RAHUL GANJI
I'm sure somebody here can help. Would you mind revising your question? Personally - I don't understand what you've asked.
Thanks,Rob
It sounds like, correct me if wrong....The value on a record is AYou need a value to be 'B' when a checkbox is clickedYou need the value to go back to 'A' when checkbox is uncheckedIf 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.
Can you tell us a bit more about the value that will be written when the checkbox is checked, and the "previous" value? Will the new value and/or the previous value always be the same, always be different, etc? For example if it's just setting a boolean value to TRUE when the box is checked and FALSE when it's unchecked, that is far simpler than if the original value of the field could be something random, and needs to be reverted later...