Brian Dunning's FileMaker Custom Functions

HidePortalScroll ( dph ; dprc ; dwch ; id_portalRecord )

Hide portal scroll bar unless extra data rows are hidden

  Average rating: 4.5 (31 votes) Log in to vote

David Sparrow   David Sparrow
Sparrow Design
http://sparrow-designs.com/

Share on Facebook Share on Twitter

  Sample input:
HidePortalScroll ( 250; 10; 800; Table_relatedTable::id_primary )

Also uses "input" from user-interaction - Get(WindowContentHeight)
  Sample output:
1 or "" (null)

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

Use in Conditional formatting on "transperant object", so if Result is "1" make the object Fill = White (hides portal scroll bar)

Assumes portal is set to enlarge vertically while maintaining orig. row height - i.e…display addtl. portal rows when it grows vertically.

// dph = default portal height as layout object
// dprc = default portal row count
// dwch = default window content height
// id_portalRecord = ID_Field in Related Portal Table

 

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: