on 2010 Mar 17 7:41 AM
Hi All,
I am adding an attachment (through coding ) to an UDO.
The attachemmt attaches fine but the Date Added field is blank and non editable.
Moreover I cannot find any APIs to fill this field with the current date.
As a result, my UDO does not get saved.
Please provide pointers to fill the Date Added field either automatically or through coding.
Regards,
Himanshu
Request clarification before answering.
Since there are no standard API's to set the date added field., you can use getExtensionField to set the date. The field ID for date Added within AttachmentSubIBeanIfc is "MODIFIED".
You can use this line of code to set the date added:
attachmentBean.getExtensionField("MODIFIED").set(TypeFactory.createSysDatetime(new java.util.Date()));
where attachmentBean is of type AttachmentSubIBeanIfc.
regards,
Immanuel
Edited by: immanuel farrar on Mar 23, 2010 5:42 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.