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.

Self Join using a calculated field

Featured Replies

HAving difficulty getting this to work:

have table of records each with a from and to date.

have global from and to dates. 

have a clac field in each table record (isConcurent?) set to yes/no if the from and to dates of the table record fall anywhere within the global date range.

have a relationship in table based on global field containing "yes" as equal to "isConcurrent?"

 

I want to on a layout for any table record, a portal showing all other table records within the global date range.

 

Portal never shows any records. 

Solved by comment

Go to solution

The problem is, the calculation references global fields so it must be unstored.  The 'portal' side must be stored.  You might remove the calculation completely and instead change the relationship.  Create a self join (another copy in the graph of the same table):

 

MainTable::gFrom <= MainTable 2::Date

AND

MainTable::gTo >= MainTable 2::Date

  • Solution

IIUC, it's a range-to-range relationship, so it needs to be:

YourTable::gFromDate ≤ YourTable 2::ToDate
AND
YourTable::gToDate ≥ YourTable 2::FromDate

Ah.  Thank you for the catch. :-)

  • Author

<< self-inflicted dope slap>>

Thank you so much for both your repies, I was using the calculation route because I couldn't figure out how to do the range to range relationship.  Much simpler!!! thanks again.

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.