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 3825 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hey! I'm somewhat of a novice at Filemaker so I'm wondering if this requirement is possible.

I have a table that stores events, an event's date doesn't necessarily have to be unique but it would be nice to alert the user if two dates are the same. 

 

Would some form of validation or script offer a solution?

 

For the logic, I'm thinking:

on input -> if date is equal to existing date in the table -> notify user (e.g. text turns a different colour/ dialog box) -> open matched records in a new window

 

If anyone could advise on how to assemble this then that would be great! 

Posted

I believe the first step is to define a self-join relationship matching on the EventDate field and excluding the current record, e.g.:

Events::EventDate = Events 2::EventDate
AND
Events::EventID ≠ Events 2::EventID

The rest depends on how you prefer to alert the user. For example, you could show the related records in a portal, or format the field conditionally when:

Count ( Events 2::EventID )

or any number of other devices, incl. script triggers.

 

 

In any case, validation is not the proper tool to use here - if only because a validation error message would be (even more than usual) confusing to the user.

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