Domino Code Fragment

Code Name*
Calculate Time Assigned
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.19.29.89
Description*
Sets time field when assigned to help desk person.
Type*
Formula
Categories*
Date/Time Handling
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
REM " if TimeDispatched field exists - then test 1 & test 2 - else test 3";
REM " test1 = ticket assigned & timedisp is empty - then set time";
REM " test2 = ticket assigned, timedisp exists (reassign) - then accept existing timedisp";
REM " test3 = ticket assigned, timedisp doesnot exist (previous tickets) - then set time";

@If(@IsAvailable(TimeDispatched); @If(@IsDocBeingSaved & AssignedTo != "Unassigned" & TimeDispatched = ""; @Now; @IsDocBeingSaved & AssignedTo != "Unassigned" & TimeDispatched != ""; TimeDispatched; ""); @SetField("TimeDispatched"; @Now))