pdmwork properties questions
pdmwork properties questions
(OP)
im trying to write a macro to changes the description property of a document while it is in the vault.
I can't seem to figure it out anyone trying this already.
thanks
I can't seem to figure it out anyone trying this already.
thanks






RE: pdmwork properties questions
It assumes that you've already connected to the vault..as MyConnection
Dim MyDoc as PDMWDocument
Dim errorcode
Set MyDoc = MyConnection.GetSpecificDocument("put doc name here")
MyDoc.TakeOwnerShip
MyDoc.Properties.Add("Name of property goes here")
MyDoc.Properties("Name of property goes here") = "New property value"
errorcode = MyDoc.Properties.Update()
MyDoc.ReleaseOwnerShip
As I said, this is old and needs tidying, but it should hopefully work.
Regards
RE: pdmwork properties questions
RE: pdmwork properties questions
i didn't know you needed to update the vault.