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.

Date handling with relationships

Featured Replies

I am trying to create a summary page that includes all events (in portals)accross multiple tables (vacations, events, to dos) that are equal to todays date. I was able to get the basics to work but there is an issue with events as follows;

An event can have a range (start date to end date) and then frequency (monthly, bi-monthly, weekly, daily) and then can have the day of the week it occurs on. So the trick I am missing is how to let FMP know that the event happens to occur equal to todays date. Any help would be appreciated.

There are a couple ways to make a relationship with date ranges for events, but adding recurrences to the mix complicates things quite a bit, as we discussed in this thread:

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

A different approach uses scripts to create separate Event records for each recurrence, as John indicates in this thread:

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

It's hard to say what you should do without knowing what method you're using and what you've got so far. Maybe you can post a sample.

  • 2 weeks later...

I have a similar question.

I am trying to match a single record in a transaction table with a date range (a start date and an end date) in a rate table. I want to display the matching rate on a transaction record, depending on it's date field.

This is a simple AND relationship in FM7, but the tables I'm working with are in FM5.

Besides converting them to FM7, what's my best approach to setting up this relationship?

Have you tried the Smart Ranges technique?

http://www.onegasoft.com/tools/smartranges/

Thanks for that, Vaughn. Somehow I missed the smartranges formulas.

Now that I have created range keys for my two files, what is the best way to link them? The documentation suggests a combined key, but I'm not sure what needs to be combined.

You can link the multi-keys the same way you'd link any other key fields: through the Define Relationship dialog.

If you go to the 1st edition page on the Smart Ranges site, there are example files.

Got it working - thanks for all the help!

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.