Brian Dunning's FileMaker Custom Functions

buttonbar.getActiveSegmentContent ( buttonBarObjectName ; optional_listButtonBarSegments )

Returns the text label (i.e., `content`) of the Button Bar Segment that is active. Useful for determining which button a user clicked.

  Average rating: 4.8 (13 votes) Log in to vote

Cristos Lianides-Chin   Cristos Lianides-Chin
Anchor-Buoy Software, LLC
http://www.anchorbuoysoftware.com

Share on Facebook Share on Twitter

  Sample input:
buttonbar.getActiveSegmentContent ( "headerNavigation_ButtonList" ; "" )
  Sample output:
"Customer Orders"

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

# buttonbar.getActiveSegmentContent ( buttonBarObjectName ; optional_listButtonBarSegments )
## v1.0.0 2016-09-07
Returns the text label (i.e., `content`) of the Button Bar Segment that is active. Useful for determining which button a user clicked.


## USAGE
buttonbar.getActiveSegmentContent ( "headerNavigation_ButtonList" ; "" )


## PARAMETERS
### buttonBarObjectName
- The name (from the Inspector) of the Button Bar layout object.
### optional_listButtonBarSegments
- Used for recursion, generally should be omitted (see "USAGE" below).


## RETURNS
- The text label given to the button bar segment, e.g. `"Customer Orders"`.


## REQUIRES
- Button Bar must have a name in the Inspector
- Each Segment of the Button Bar must have a name in the inspector


## CHANGELOG
### [2016-09-07 cristos@anchorbuoysoftware.com](http://www.anchorbuoysoftware.com)
- Function created
- Based on suggestions from https://fmslug.slack.com/archives/general/p1473279629000181 by [Tony White](http://www.twdesigns.com)

 

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.