Brian Dunning's FileMaker Custom Functions

portal.rowCount ( _name )

Calculate number of visible portal rows.

  Average rating: 3.9 (41 votes) Log in to vote

Arnold Kegebein   Arnold Kegebein
Arnold Kegebein
http://www.kegebein.net

Share on Facebook Share on Twitter

  Sample input:
portal.rowCount ( "myPortal" )
  Sample output:
10 (if the portal "myPortal" has 10 portal rows visible)

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Calculates the total number of visible portal rows (not the number of records shown in these rows).
The parameter _name for this function is the object name of the portal.

Besides the object name for the portal, at least one object in the portal has to have an object name, too.

If the portal object name is unknown, nothing is returned.
If no object inside the portal has an object name, a question mark (?) is returned.


I was inspired by Fabrice Nordmann's function VisiblePortalRows. My cf returns only the row number count, not the visible values from the portal. Advantage: It does not use recursion (faster) and requires only one function parameter.

See also my function portal.firstVisibleRow to get the index of the first visible portal row.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.