I automatically defaulted to Perspective, when @MMaynard is correct - you didn’t specify Perspective. I still believe you are asking about Perspective because Vision actually provides access to a dataset of the currently selected alarms, but here’s how you could obtain your desired behavior in Vision:
Place a Label and a Button.
As part of the Button’s
onClick Event, supply a Script with the following code:
display_path = event.source.parent.getComponent('Alarm Status Table').selectedAlarms.getValueAt(0, 'DisplayPath')
event.source.parent.getComponent('Label').text = display_path
Note that this does not prevent a user from selecting multiple alarms, and if they do so it will only display the path of the FIRST alarm selected. This code does also not prevent an error from occurring should NO alarms be selected.