on 04-01-2009 10:35 AM
Hi,
I am using MDM java API to insert record into MDM repository. I want to insert a field of type date.
I am using the below code.
newRec.setFieldValue(fields[2], new DateTimeValue(wdContext.currentContextElement().getDOB_personal().));
it is giving me error that the costructor DateTimeValue(Date) is undefined.
Kindly suggest.
Hi Prasanthi,
Try modifying code like this
Calendar c = Calendar.getInstance();
c.setTime(wdContext.currentContextElement().getDOB_personal());
newRec.setFieldValue(fields[2], new DateTimeValue(c));
Ninad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.