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.

Featured Replies

Hi,

 

using a "count of id" summary field in the enclosing layout/table I can get the current total number of rows in the portal based on the portal relationship. But I have three or four filters defined in the portal so that the portal only shows a subset of this total.

 

How can I possibly get the correct number of portal rows that are displayed at any time — outside of the portal on the enclosing layout? Preferably in a global field?

 

I can insert a Record Number Symbol on each portal row that displays the current record number down to the last number. That works fine. But I can't get this value into the enclosing layout/table, whatever means I try.

 

I could probably use a couple of ExecuteSQL queries (one for each case), but because my filters are quite complex these would be also very complex and cumbersome, especially because SQL treats the data a little bit differently than FileMaker (empty fields vs NULL fields, etc.).

 

Any suggestions how to achieve this?

 

Thanks a lot!

 

Gary

 

How can I possibly get the correct number of portal rows that are displayed at any time — outside of the portal on the enclosing layout?

 

Assuming this is for display only: duplicate your portal, make the duplicate one row tall and place (only) a summary field, defined (in the child table) as Count of [serialID], inside that row.

  • Author

Yes, good idea.

At this time it's only used for display. However, it would be handy to have it in a field.

Thank you very much.

Gary

However, it would be handy to have it in a field.

 

It is in a field. And if you need to refer to it, you could assign an object name to that field (or, more precisely, to the specific instance of that field). However, this would work only on layout level - same as portal filtering only works only on layout level - so if you need this for data processing, use a filtered relationship instead.

  • Author

Cool. I have assigned the name "FilteredPortalRowsCount" to it. But how do I get its value when on this layout?

But how do I get its value when on this layout?

 

It's a layout object - so naturally, you need to use the GetLayoutObjectAttribute() function to get anything out of it.

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.