User field not populated in attachments list

Discussions related to custom development with Select.
Post Reply
dfrandsen
Posts: 15
Joined: Tue Mar 03, 2009 11:33 am

User field not populated in attachments list

Post by dfrandsen »

I have a custom package, that among other things, copies saved or emailed documents to SPImage. My code looks basically like this:

Code: Select all

IDocumentImage doc = order.DocumentImage.CreateNew();
doc.Trustee = order.CurrentUser;
doc.OriginalLocation = new Uri(((FileInfo)itm.Properties[PrintJobItemProperty.FileLocation]).FullName);
doc.Description = docName;
doc.DocumentImageTypeID = SoftPro.OrderTracking.Client.DocumentImageType.Attached;
doc.FileType = "PDF";
doc.SubmittedDate = DateTime.Now;
Everything seems to work fine - in the "Attachments & Document History" tab I can see the new doc image, however, the "User" column in the list is never populated. Am I doing something wrong in the code?
dfrandsen
Posts: 15
Joined: Tue Mar 03, 2009 11:33 am

Re: User field not populated in attachments list

Post by dfrandsen »

I just noticed that if I close out of the SoftPro client, then reopen it, the list now appears populated correctly.
Post Reply