Hello Techies--
I would like to use the CustomSttributes collection to store status information about individual documents. I would also like to use this collection to store historical information captured from Documentum which has no exact equivalent in WorkSite. The code samples in the documentation are all about getting these values out of the collection--but--not setting them. Although I know this type of assignment won't work, here (last line) is roughly what I have in mind:
public IManDocument ImportDocToFolder(IManDocumentFolder destination, string fileToImport, string strComment, string strfileNm)
{
ManDocument retDoc = null;
object iErrs = null;
try
{
IManDocument target = destination.Database.CreateDocument();
.
.
.
target.Name = strfileNm;
target.Description = strfileNm;
target.Comment = strComment;
//TODO: Get this (or something close to it) to work.
target.CustomAttributes.ItemByName("imProfileCustom1") = "Released"; //CR related status
.
.
All suggestions will be greatly appreciated!;-)
Warm regards,
--p
Paula DiTallo - Middleware Architect/ .NET Developer
plditallo@metro-design-dev.com