OnCloseDocument grayes out vault buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have made an addin that pops up when the user closes a file that is not yet in Vault. The idea is to send a reminder to the user that the file they're closing is not in Vault and needs to be added. It frequently happens that files only exist locally.
I don't need the checkin functionality itself, I just want to cancel the close event. So I use the OnCloseDocument event and check if the file is in Vault. If that is not the case, a message pops up asking the user if he wants to close the document or not. I set the handlingcode to 'eventcanceled' and that all works fine. But after the close event is cancelled and the document remains open, all Vault buttons are grayed out and I can't check the file in. I have to switch to a different file and come back to the one in question to get the buttons 'active' again. Any idea how to avoid that?
Regards,
Joeri