Skip 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.

Portal filter

Featured Replies

FM 11 Adv. In a related table I have a field for say fruit. It contains many records for each piece of fruit: pear, grape and others. Is it possible to display a simple list of the names of the fruit in a portal without displaying all the records? For a example, simply display: apple, pear, grape, etc?. Some sort of filter?

Not sure if you truly need a portal for your purposes but if not, how about the List () function. List ( Table::Fruit ) in an unstured calc field will give you a list of unique values in the field refferenced.

List ( Table::Fruit ) in an unstured calc field will give you a list of unique values in the field refferenced.

Alas, that is not so: List() will enumerate all the values in the field, including duplicates.

Is it possible to display a simple list of the names of the fruit in a portal without displaying all the records?

It's possible, though not quite simple. It would be better to have a third table of Fruits (where each fruit has a unique record) and point your portal to there. Why do you need this?

I see so many requests for unique of a Category or Type field which exists in related table (or any field for that matter). And it isn't as difficult as one might think. One table occurrence, a sort and a filtered portal. :laugh2:

Strive to move check box type fields to their own tables but when you can not (and I do not believe it is always the answer anyway) then this technique by Kevin Frank fits the bill.

To make it even simpler, John, I created a demo addressing this very issue.

Hey Ron, I think you were thinking of ValueListItems () which produces unique lists. :-)

Fruit.zip

And it isn't as difficult as one might think. One table occurrence, a sort and a filtered portal. :laugh2:

Or just a sort and a filtered portal:

http://fmforums.com/forum/topic/71906-getting-more-out-of-filtered-portals-3unique-values/page__hl__filtered__fromsearch__1

How could I possibly have missed this, Michael, particularly with you and John (Mr_Vodka) both on that post? Dropping that extra table occurrence absolutely rocks. :waytogo:

LOL.

I'd still recommend the traditional approach (a portal to a dedicated Fruits table), if possible. Filtered portals are nice, but processor-hungry.

The logic in this filter is brilliant.

Actually, come to think of it, it can be better:

http://fmforums.com/forum/topic/71906-getting-more-out-of-filtered-portals-3unique-values/page__p__375983#entry375983

Oh yes! Even better. BTW, I realized that the technique Kevin Frank uses in his demo is identical to Mr_Vodka's, LOL. I must have been visiting on another planet that day to have missed the goodies in that thread!

the technique Kevin Frank uses in his demo is identical to Mr_Vodka's

Except John posted his, what, 17 months earlier?

That's way above my head... (the only superconductor I know of is Leonard Bernstein).

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.