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

Recommended Posts

Posted

I know I'm doing something wrong. I want a repeating calc field (30 repetitions) to calculate dates 30 days beyond the selected date.

SelectedDate = date field where you select the date

calcDates[30] = repetition1 = SelectedDate + 1, repetition2 = SelectedDate + 2, etc

I originally had 30 fields calculating the previous field + 1 but that was cumbersome! There's got to be an easier way. I've tried a number of things:

Let( [ repetition=Get(ActiveRepetititonNumber); lastrepetition=repetition-1]; If( lastrepetition=0; SelectedDate; SelectedDate + lastrepetition ) )

-----something to that effect; anyhow, it didn't work

The most obvious:

SelectedDate + Get( ActiveRepetitionNumber )

(no good---I realized you must be in a repetition number for it to work)

I just want the 30 repetitions to autofill with the previous repetition + 1.....

hmmm. Ideas?

Posted

You could try Extend... oh never mind. :joust:

Posted

Extend doesn't work. I mean, it helps the calculation: now the fields contain data. BUT, not the correct data.

They all contain SelectedDate. None of them computed Get( ActiveRepetitonNumber ) ---- because no repetition was selected. Hmmm, maybe it's not possible.

Posted

Hi gephry

two answers with the same calc...do you think we are both wrong ?

Copy and paste that calc... or see what is the difference between CalculationRepetitionNumber and ActiveRepetitonNumber

Posted

Ah blimey. My apologies. I hadn't even noticed the CalculationRepetitionNumber instead of ActiveRepetitionNumber.

Extend( SelectedDate ) + Get( CalculationRepetitionNumber ) does exactly what I intended whereas the other does not work at all.

Thanks for all your help!

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