Refreshing hide formulas on view action buttons... any leads?
I have a routine in an application that marks a view of documents as "locked" or "unlocked" when the view action button is clicked. There's a "Lock Documents" and an "Unlock Documents" button at the top of the view. Each one is hidden based on a @DbColumn command that looks at the value of the Lock column in a view. Since it's an "all or nothing" lock, the appearance of the lock hides the Lock Document action, and the lack of a lock hides the Unlock Document action. After I run the LotusScript agent attached to the action button, I have the view do a refresh so that the lock icon shows up.
All the stuff above works fine... Except for one tiny nit...
Once the Lock Documents agent finishes, I'd like to have the hide formulas in the view action buttons be reevaluated. It'd be great to have the Lock Documents button disappear and have the Unlock Documents button replace it. The only way it happens now is to exit the view and go back in. When you reenter the view, the buttons obviously refresh and all is as it should be.
I've tried a number of combinations of methods of NotesUIView, NotesUIDatabase, and anything else that looked promising. But in the end, I couldn't manage a refresh on the view action button hide formulas.
Any ideas from the accumulated wisdom of Notes gurus out there?
UPDATE: Declan gets the "free beer" award for pointing me to a view property that I was unaware of... works like a charm!