Brian Dunning's FileMaker Custom Functions

buttonbar.getActiveSegmentName ( buttonBarObjectName ; optional_listButtonBarSegments )

Returns the layout object name of the Button Bar Segment that is active. Useful for determining which button a user clicked.

  Average rating: 4.5 (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.getActiveSegmentName ( "headerNavigation_ButtonList" ; "" )
  Sample output:
"CustomerOrders_bbs"

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

# buttonbar.getActiveSegmentName ( buttonBarObjectName ; optional_listButtonBarSegments )
## v1.0.0 2016-09-07
Returns the layout object name of the Button Bar Segment that is active. Useful for determining which button a user clicked.


## USAGE
buttonbar.getActiveSegmentName ( "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" section).


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


## 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.