Hi Antonio,
Thanks for the reply. I think I got it. I was using the TimestampValueDefaultView where I should have been using TimestampDefView to get the name of the attribute.
wt.iba.value.IBAHolder ibaHolder = (wt.iba.value.IBAHolder) ((wt.change2.WTChangeRequest2)primaryBusinessObject);
ibaHolder = wt.iba.value.service.IBAValueHelper.service.refreshAttributeContainer(ibaHolder, null, null, null);
wt.iba.value.DefaultAttributeContainer defAttCont = (wt.iba.value.DefaultAttributeContainer) ibaHolder.getAttributeContainer();
wt.iba.definition.litedefinition.TimestampDefView attDef = (wt.iba.definition.litedefinition.TimestampDefView)wt.iba.definition.service.IBADefinitionHelper.service.getAttributeDefDefaultViewByPath("RequestedImplementationDate");
if (defAttCont.getAttributeValues(attDef).length==0)
{
wt.iba.value.litevalue.TimestampValueDefaultView newValue=new wt.iba.value.litevalue.TimestampValueDefaultView(attDef,timeStamp);
defAttCont.addAttributeValue(newValue);
}
else {
wt.iba.value.litevalue.TimestampValueDefaultView attValue= (wt.iba.value.litevalue.TimestampValueDefaultView)defAttCont.getAttributeValues(attDef)[0];
attValue.setValue(timeStamp);
defAttCont.updateAttributeValue(attValue);
}
wt.fc.PersistenceHelper.manager.save((wt.fc.Persistable) ((wt.change2.WTChangeRequest2) primaryBusinessObject));
Thanks again,
Dax