Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hello all... This would be the final key to my scheduler file I am working on.

I have fields named 'Start' and 'Ship'. I need a 3rd field (call it 'Dates') that will do a calc that I cannot figure out....

If I enter 1/1/2001 in 'Start' and 1/5/2001 in 'Ship', I need the 'Dates' field to look like this after the calc:

1/1/2001

1/2/2001

1/3/2001

1/4/2001

1/5/2001

I have written out the script, to figure it out logically, but I'm not sure how to translate it into a FileMaker calc... 'Ship' - 'Start' = 'x', 'Ship' (new line), 'Ship' + 1 ('x' number of times) (new line).

Am I think of this correctly...? Basically, I need to have the 'Start' and 'Ship' - and all dates between entered in a 3rd field.

Any help would be great. Thanks!

Jerremy

The easiest way to do this will be with a script. Although it's possible to do with a calculation, you have to have an upper limit on the difference between the days. I once built a calculation to do just this for an upper limit of three years between the dates and it actually took three fields because the calc was so long that one field couldn't hold it. The calc went like this:

Start &

Case( Ship >= Start + 1, DateToText( Start + 1 ) & "

If you are using a script to setup the Dates field, try this:

Add a global field gDateTemp (date) then

If (IsEmpty(Start))

Exit Script

End If

Set Field(Date, "")

Set Field(gDateTemp, Start)

Loop

SetField(Date, Date & "

Troi And Waves in Motion have a plugin that can accomodate this.

Date & Time

Ranges Plugin

  • Author

Hello again all...

Thanks for you help. That calc was perfect! I have this calc field related to a calendar file, and now all my dates show up on the calendar just like I wanted them to. I'm sure the script would also do what I wanted, but I needed this to be 'automatic'.

Thanks again!

Jerremy

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.