It looks as if it isn’t possible from the Outline – when the user clicks on the button in the Outline, the uiview properties are not available.
My Action needs to retrieve the view’s selection formula.
Is there a way to avoid having to add a Shared Action to twenty or so views, and still have it work the same – remembering the view the user was in when the button was clicked?
N.B. Strangely, when I execute the code with the Debugger, it works fine! (probably because the debugger messes up the focus?)