Hi John DaSilva,
Still I have a problem with updating date attribute in the data item
mapping I using the following code (ECMA script).in the approval for form
iam using datetimepicker.

function setTroyTime()
{
var df = new
java.text.SimpleDateFormat(flowdata.get('approval/approval_form/edirTime'));
var date1 = df.format(mydatestring);


setTroyTime_date = new Date(date1);
setTroyTime_year = setTroyTime_date.getUTCFullYear().toString();
setTroyTime_month = setTroyTime_date.getUTCMonth() + 1;
setTroyTime_month = setTroyTime_month.toString();
setTroyTime_days = setTroyTime_date.getUTCDate().toString();
setTroyTime_hours = setTroyTime_date.getUTCHours().toString();
setTroyTime_minutes = setTroyTime_date.getUTCMinutes().toString();
setTroyTime_seconds = setTroyTime_date.getUTCSeconds().toString();
setTroyTime_milliseconds =
setTroyTime_date.getUTCMilliseconds().toString();
if (setTroyTime_month.toString().length == 1){setTroyTime_month = '0' +
setTroyTime_month;}
if (setTroyTime_days.toString().length == 1){setTroyTime_days = '0' +
setTroyTime_days;}
if (setTroyTime_hours.toString().length == 1){setTroyTime_hours = '0' +
setTroyTime_hours;}
if (setTroyTime_minutes.toString().length == 1){setTroyTime_minutes = '0'
+ setTroyTime_minutes;}
if (setTroyTime_seconds.toString().length == 1){setTroyTime_seconds = '0'
+ setTroyTime_seconds;}
if (setTroyTime_milliseconds.toString().length ==
1){setTroyTime_milliseconds
= '00' + setTroyTime_milliseconds;}
if (setTroyTime_milliseconds.toString().length ==
2){setTroyTime_milliseconds
= '0' + setTroyTime_milliseconds;}
setTroyTime_deciseconds = setTroyTime_milliseconds.toString().substr(0,1);
setTroyTime_formattedTime = setTroyTime_year + setTroyTime_month +
setTroyTime_days
+ setTroyTime_hours + setTroyTime_minutes + setTroyTime_seconds +
setTroyTime_deciseconds;
return setTroyTime_formattedTime.toString();
}
String(setTroyTime());



I have an attribute called edirTime with the time syntax. I want to update
this attribute thru User APplication's Approval Form. Please help me to do
this.

Note: I am using eDir 8.8, IDM 3.0 and Designer 2.0


Regards,
Nirmal