Hi,
I would like to hide a UDP in the property view of Vault Explorer by API. I know there isn't a straight forward way to do this, because when a user hides a property it's stored in a local XML file.
Would it be possible to change the XML in the OnStartUp event of my Vault Extension? Or is the XML file already parsed before on OnStartup event?
I am not too familiar with changing XML's programmatically and I don't know the proper way of adding a UDP to the 'hidden section(?) of the XML file.. Any sample is very much welcome!
Regards,
Pim Saarloos
The local XML files are not officially supported by the API. So you are mostly on your own figuring how how they work. Even if you do get something working, the behavior is subject to change without notice for the next release.
You might want to see if Project Thunderdome solves your problem. It can will distribute the grid settings for you to your Vault users. Just be aware that Thunderdome will do an overwrite of the existing grid settings. It's doesn't attempt to do a merge or anything.
Pim,
I'm curious, are you trying to hide the UDP because you don't want certain users to edit the UPD value?
Hi Pim,
I would suggest evaluating Doug’s post on using the API’s event handler feature. Reconsider the VaultOption and save your folder settings using XML serialization. Associate your saved VaultOption with the folder ID by using a name that is unique to that folder (LoadSettings(m_serviceManager, “CustomConfig.1234”)). Delete the VaultOption when you capture the Folder Delete event and you can match the folder that is about to be deleted with the VaultOption id you specified.
//// Folder Events //DocumentService.AddFolderEvents.GetRestrictions += new EventHandler<AddFolderCommandEventArgs>(AddFolderEvents_GetRestrictions); //DocumentService.DeleteFolderEvents.GetRestrictions += new EventHandler<DeleteFolderCommandEventArgs>(DeleteFolderEvents_GetRestrictions);
I see, yes a VaultOption record can only be created and deleted by a Vault admin but non – admins can read the VaultOption records. It’s unfortunate that there isn’t a security option to allow certain roles write access to the VaultOption (or simply deny certain roles UPD editing for that matter). We have successfully restricted users from editing UPD’s on files but I don’t see a way to do it on folders.