Button in Outline can't retrieve view properties?

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?)

Subject: Button in Outline can’t retrieve view properties?

you are correct, pressing a button in an outline would take the focus away from the view. you could put some code in the view’s PostOpen event to write the current view name to the INI or to a profile document. then you can call the view name to access the NotesView class and get the SelectionFormula from there. just a thought - HTH.