Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted (edited)

Hello,

I have a number field called [Days before alert] and a date field with the expiration date.

Days before alert = 5

Expiration date = 7/17/2006

Today: 7/15/2006

My alert calculation 1 should start a count down for 5 days up to the expiration date, then the alert calculation 2 should go on.

Please see the attachment

Thanks.

Alert_test.zip

Edited by Guest
Posted

Try combining the two calcs into one, i.e. if the first test succeeds, then put up one text message ELSE use the second. BTW, usually I find it clearest to set up simple tests that are unambiguously true or false, and embed secondary tests within that first test. Far too often I string together two or three into one grand test only to find that the combination has a different result than I planned.

Posted

Hi

try this lonely calc ( only one field):P

Let(

days = Expiration date - Get ( CurrentDate );

Case(

IsEmpty ( Clear_Alert);

Case (

days > 0 and days ≤ days before alert ; "Alert: Task Expires in "& TextColor ( days ; RGB ( 0 ; 0 ; 255 ) ) &" days " & TextColor ( Expiration date ; RGB ( 0 ; 0 ; 255 ) );

days = 0 ; "Alert: Task Expires ToDay " & TextColor ( Expiration date ; RGB ( 0 ; 0 ; 255 ) );

days < 0; "Alert: Task Is over " & TextColor ( Abs ( days ) ; RGB ( 255 ; 0 ; 0 ) ) &" Days. " & TextColor ( Expiration date ; RGB ( 255 ; 0 ; 0 ) );

""

)

)

)

Remember to make the calc UNSTORED.

This topic is 6763 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.