Been a while since I build an app and I am a bit rusty and I was hoping if someone can help me with is probably a issue solution to a Reset_if scenario I am looking for.
I have two specific columns of a table that includes a few others.
Status
Status Date
Status date is currently empty, however status is mostly populated as well as the data in most of the other columns in the table.
I would like that Status Date to Reset_if I change or edit the data in the Status column.
Note:
The status date won’t necessarily be today’s date. So timestamp will not help.
I also would like to make the Status Date required only if the Status is changed / editted.
Did you tried to set the “Reset on Edito” mode to be turned on?
I m not testing with actual app, but hope it will work.
Turn On Reset On Edit
Push Expression into it, something like [_thisrow_before].[Status]<>[_thisrow_after].[Status]
Set the initial value to TODAY() for Status Date column
Once the user access to any row for edit and change the status, from A to B or even null to A, it detect change and trigger constrains and reset the value for Status Date to Today()
Also set the required if constrain with expression [_thisrow_before].[Status]<>[_thisrow_after].[Status]
Will test it out and let you know.
Does your suggestion work if I keep status date initial value blank?
The status date actually is on another system so it is rarely is today’s date when the status changes.
I remember if you leave the initial value to blank, i.e. null, then it is possible [_thisrow_before].[Status]<>[_thisrow_after].[Status] will be triggered all the time, but im not perfectly sure unless I do hands on test. Let me know how it works or NOT works.
I have noticed the below option for the Change column types. Do you believe there is better way to rather use change type together with the below option for my specific scenario. If so, could elaborate how to use them in my scenario?
Resets the complete services? column that is set when a technician bills out services but anticipates a second technician be added to the assignment and doesnt want to close out the entire ticket.
This allows for:
the services and JobID to be reset
a second technician to be added to a ticket
not double bill for services
initiates the loop around for the status workflow until work is complete and ticket is finalized.