cancel
Showing results for 
Search instead for 
Did you mean: 

How to send value to 'Literal Date' field in MDM from java

Former Member
0 Kudos

Hi,

I have a field start_date(Literal Date) in my MDM table.

Could any one give me a clue how to send value from java program to this type of columns.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Here's a code sample that should help you out.


A2iFields fields = new A2iFields
A2iField dateField = new A2iField("literal date field name");
SystemTime time = new SystemTime(2005, 11, 8, 0, 0, 0, 0);
Value dateValue = new Value(time);
dateField.SetValue(dateValue);
a2iFields.Add(dateField);

The paramaters for the SystemTime constructor are:

year, month, day, hour, minutes, second, milliseconds.

Then pass the fields object to the addRecord or updateRecord methods.

Hope this helps,

Richard

Answers (0)