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 to restrict records in a Layout

Featured Replies

Hello,

I have worked through how to create a portal that displays records that are restricted by a self join.

BUT ... is it possible to do this using a layout as follows:

I have a table that has jobs, and these are either quoted or live jobs. I have a field called 'Status' that is populated from a value list with either "Job" or "Quote".

I want to be able to create a layout that only shows 'Quotes' as a result of using a self join. I've temporarily solved using a script trigger that forces a find on 'layout enter' but it's not the best solution.

I'm sure I'm just missing something simple as I worked out how to do it using a portal ... but now I'm very frustrated.

Best regards,

Simon

A layout will always show all records of the found set. If you want the found set to be "filtered" by type, you must perform a "supplemental find" at critical points (such as entering the layout).

  • Author

A layout will always show all records of the found set. If you want the found set to be "filtered" by type, you must perform a "supplemental find" at critical points (such as entering the layout).

Hi Comment,

I just got the relationship working and discovered what you mean. Would a preferable method be to list the matching records using a portal and then perform a GTRR to the single related record only?

Thank and kind regards,

Simon

It's really up to you. Both methods are viable.

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.