FirstPortalViewed ( PortalName ; FieldName ; n )
Determines the first fully visible portal row in a protal
Average rating: 4.3 (3 votes) Log in to vote
David Bailey Architect
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
With filemakers tendency to reset a portal when you display a different record it is important to be able to return to the same portal. Use this function and a knowledge of how many portals are being displayed you can use the GOTO Portal by calculation to go to the record needed.'
If the function returns 8 and visible rows are 15 and total rows are 50 then the bottom row will be 8+15 or 23. Goto portal row 23 and your selection is back where you were.
Mar 6, 2017
You forgot to remove 3rd parameter in recursive call. Last line should be
Case( r > p ; n ; FirstPortalViewed(PortalName; FieldName; n+1))))
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.