Not an designer expert by any means, but I’m still embarrassed to say I’m struggling with what I think should be an very easy calculation, calculating days open in a form. I’ve scoured the forumns and the designer help, but still can’t figure it out. Any help would be greatly appreciated!
I have a form with 3 date fields:
-
Date1: date the form is created (@created, date/time type, computed when composed)
-
DateOpened: date the form is opened by svc dept (@modified, date/time, computed)
-
DateClose: date the form is closed by svc dept (@today, date/time, computed)
-
Status: editable dialog list (“”, OPEN, or CLOSED). Upon closing the ticket, I’m using @SetField(“Status”; “CLOSED”
-
DaysOpen: # of days open, (Number type, computer) when ticket is closed this no longer changes. when not closed, this should continue to calculate the days open.
My DaysOpen formula:
t1 := DateOpened;
t2 := @Today;
t3 := DateClosed;
@If(Status!=“CLOSED”); (t2 - t1)/86400; (t3 - t1)/86400
I continue to get the following error:
Field: DaysOpen: “Incorrect data type for operator or @Function”: Time/Date expected
Thank you!
EKillian