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

Recommended Posts

Posted

Hi there,

I'm back to Filemaker after a long break - and have been told to implement a Calendar.

I am using a calculation field for each "Day" - as each field is not so much a date as a list of Date attributes - based on the date - i.e for the 10th of November the multi key list would be:

 

10/11/2012

monthday10

monthnum11

SecondSaturday

 

I did OK (I think) as long as the Calendar was allowed to start on the first grid square (the first field knew that it was referring to the first of the month)

BUT - the boss now wants the 42 day grid - with the first days as well as the last days that are not past of the selected month also being shown.

 

My question is - how do I work out the shift needed - i.e how do I know that the first of November is actually the fifth grid square...?

I suppose each field would start with this shift calculation... but am at a loss to know what the calculation is.

I have tried variations on if( 1st of month selected is NOT a Sunday ; then ... ) but lost

 

Could anyone please help me ? I've been struggling for a while now, my head is splitting, my eyes are red ...

 

many thanks in advance

 

Glorifindal

Posted

I'm not following the requirements in your description, but I think you could start with the DayOfWeek({some date}) function.

Posted

Hi there,

 

I am using a calculation field for each "Day" - as each field is not so much a date as a list of Date attributes - based on the date - i.e for the 10th of November the multi key list would be:

 

10/11/2012

monthday10

monthnum11

SecondSaturday

 

I am not sure what such multi-key is supposed to accomplish. In any case, 42 day fields + 42 calculated key fields is not a good idea - if only because it will also necessitate defining 42 relationships to your Events table. You should be using a days table with 42 records - see an example here:

http://fmforums.com/forum/showtopic.php?tid/176396

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