Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 2724 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi.  

I have a script that runs to add attendance to a fire department incident report.  Before the script runs it checks the current time against the dismissed time of the call.  If the current time is more than two hours after the dismissed time the script will not allow you to enter the attendance.     

My question is how would I add a second means of validation to not allow an attendance record to be added unless 15 minutes have elapsed from the start of the call while keeping the two hour time out component?

Thanks

Chris 

Screen Shot 2017-06-08 at 3.28.38 PM.png

Posted

Not sure where exactly you are having problems with this. If you want to have two cumulative conditions, join them by the and logical operator, e.g. :

If [ Event Report::Start + 900 < Get ( CurrentTimestamp ) and Get ( CurrentTimestamp ) < Event Report::Dismissed Time + 7200 ]
  Perform Script [ "Add Attendance" ]
Else
  Beep
End If

Note that only one test is necessary; in your version, you're testing twice for (almost) the same thing. 

 

--
P.S. Please post your script as code next time, so I don't have to retype.

 

Posted

Thanks everyone.  I'm going to try this.  I didn't know that.  

Thanks again!. 

Chris

 

This topic is 2724 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.