Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

UpdateEntry() method fails to update Remarks field of a file
Last Post 08/11/2011 9:30 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Srinivas
New Member
New Member
Posts:6


--
08/09/2011 4:44 PM
Hi,

I am trying to update the attributes (Ex: Remarks) of a file using UpdateEntry() method. here is the sample code id used:

EntryInfo oDocEntryInfo = EntriesController.GetEntry(this.PortalId, iCollectionID,"Locale",true,true);

if (oDocEntryInfo != null)
{
oDocEntryInfo.Remarks = "This is user manual doc";
EntriesController.UpdateEntry(oDocEntryInfo,true,true,true,true);
}

Here "iCollectionID" is the PDF file document/entry ID, which I get on uploading of PDF document using SimplifiedUpload() method of EntriesController class.

But the method UpdateEntry() is not updating the 'remarks'! Am I missing any thing here or Is there any other approach to update the remarks field using API?

Regards,
Srinivas
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/11/2011 9:30 PM
Use the RemarksML property instead. So

oDocEntryInfo.RemarksML("").Texts("") = "This is user manual doc"

This may seem somewhat convoluted (and in DMX 6 I'm going to fix that) but it has to do with the specifics of the ML (multi language) implementation.

Peter
You are not authorized to post a reply.