cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date Added field blank in attachment

Former Member
0 Likes
86

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

View Entire Topic
Former Member
0 Likes

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