Bound Tag Path from Display Component in Script

Here is a simple example that runs the script when a button is pressed to display the tag path of the binding on the LED Display component.
First, create a custom method on the button for the script (see screenshot). Then, in the actionPerformed event handler on the button, call the custom method:

tag = event.source.getTagForProperty(event.source.parent.getComponent('LED Display'), 'value')
event.source.parent.getComponent('Label').text = tag

Note, this was created in Ignition 7.9 vision module.