Refreshing hide formulas on view action buttons... any leads?
Category IBM/Lotus
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!
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!



Comments
Check out this technote:
http://www-1.ibm.com/support/docview.wss?rs=899&context=SWA40&context=SWA50&context=SWA60&context=SWCZ0&context=SWD10&context=SSES8G&context=SSHJ3R&context=SSEPTH&context=SSKTYF&context=SSMT72&context=SSPQ7E&context=SSMSB2&context=SS6JVW&context=SS5LUA&context=SSKJ9S&context=SS8KYD&context=SSFLMV&context=SSESJN&context=SSVHGK&context=SSKTPA&context=SSVHEW&context=SSVHFY&context=SSVLBW&dc=DB510&dc=DB520&dc=D800&dc=D900&dc=DA900&dc=DA800&dc=DB530&dc=DA600&dc=D600&dc=D700&dc=DA500&dc=D200&dc=DA410&dc=DA450&dc=DA430&dc=DA440&dc=DB540&dc=DB400&dc=DA420&dc=DA460&dc=DB300&dc=DA470&dc=DA480&dc=DB100&dc=DA4A10&dc=DA4A20&dc=DA700&dc=DA4A30&dc=DB550&dc=D100&q1=document+locked&uid=swg21236863&loc=en_US&cs=UTF-8&lang=all
It may or may not help you.
Sean---
Posted by Sean Burgess At 13:21:09 On 14/01/2007 | - Website - |
Thanks so much!
(Rob... I'll go *get* you a beer between those same dates... reward for effort. :) )
Posted by Duffbert At 16:12:53 On 12/01/2007 | - Website - |
I've got a free beer for anyone who can tell me why docs won't unlock on their own. I've got a database that I enabled doc locking. Everyday, I have to review the database to see if some docs have not unlocked from the previous day even though the user has closed them. Tough to troubleshoot. We're on 6.5.5. I bet it's a bug that's been fixed in a later release. It's a question I intend to bring to the Lotusphere Lab.
Cheers.
Posted by Curt Stone At 03:55:52 On 13/01/2007 | - Website - |
And I assume the uiworkspace.reloadWindow didn't work (or ws.ViewRefresh - you didn't mention checking the workspace methods)?
Posted by Rob McDonagh At 15:50:04 On 12/01/2007 | - Website - |
Posted by Declan Lynch At 16:05:51 On 12/01/2007 | - Website - |
Declan... Didn't know about that view option... Let me give that a try.
Posted by Duffbert At 16:08:17 On 12/01/2007 | - Website - |