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.

Can't filter portal based on a global

Featured Replies

New FMP11 Portal filtering feature does not seem to work when filtering based on a global.

Here are some calculations I tried entering in the "Each portal record will be visible when:" dialog...

IsEmpty (Table::globalfield) or ( PortalTable::field = Table::globalfield )

...all records show up regardless of what is in Table::globalfield

IsEmpty (Table::globalfield)

...no records show up, even if the global field is not empty

PortalTable::field = Table::globalfield

...no records show up, even if fields match

BUT - change globalfield to a regular field, and everything works as expected (related records only show up in the case of a field match or when field in main table is blank... why would this be?

PortalTable::field = Table::globalfield

...no records show up, even if fields match

This DOES work. You may have to do a refresh to see it though.

  • Author

the attached file demonstrates how it does not work for me.

I am using FMP 11.0v1 MAC. Also tried FMA 11 MAC but didn't confirm version.

portaltest.fp7.zip

It should apparently still be solved this way - see attachment!

--sd

portaltestfix.zip

  • Author

Thanks.

But yikes... the whole point of the new portal filtering feature was to avoid all that. Seems like a completely unnecessary limitation to me... would this not be considered a bug?

Also Bruce said it works... so I'm wondering if it's just the Mac version?

Edited by Guest

the attached file demonstrates how it does not work for me.

I am using FMP 11.0v1 MAC. Also tried FMA 11 MAC but didn't confirm version.

No, your attached file demonstrates that it DOES work for you.

It works correctly as is. But a refresh is required as I mentioned before. I had added script trigger refresh.

portaltest.fp7.zip

Edited by Guest

Since the solutions might be deployed in a multiuser enviroment, should each refreshing be forced thru to prevent stuffing the network with chatter, your take on the matter originates from spreadsheets which can't be shared ... the layout event is what trigs the establishment of relations.

The calculations engine cannot monitor arbitrary values changing a relation away - what if there are many which to choose, but if you put the global field in the same table as you monitor can you force it thru ... this is more or less what we call Ugo's method.

--sd

  • Author

ok, sorry, I thought clicking in the background, changing layouts, or committing records would constitute a sufficient "refresh".

I wasn't familiar with the "Flush cached join results" option.

I don't understand why it is any more onerous on the calculation engine to monitor a global over a regular field (which works without this script step), and would be interested if that could be explained, but anyhow I'm glad to know the work around!

Many thanks!

But the global IS in the same table. It's just a standard refresh issue. You complicated solution is old-think. It is not an FM11 filtered portal.

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.