Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

CopyService not quite working

I have two value nodes with matching elements - AttendanceEntry and AttendanceTemp - cardinality is 0..n. I am wanting to copy all the data from Entry to Temp (my example has 38 items in it). I have tried the following code. Both versions the AttendanceTemp contains zero entries.

Did I do something incorrect?

wdContext.nodeAttendanceTemp().createAttendanceTempElement();
try
{
	WDCopyService.copyCorresponding(wdContext.nodeAttendanceEntry(),wdContext.nodeAttendanceTemp());
}
catch (Exception ex)
{
 // TODO Catch
}

didn't work so then I tried

wdContext.nodeAttendanceTemp().createAttendanceTempElement();
try
{
	WDCopyService.copyElements(wdContext.nodeAttendanceEntry(),wdContext.nodeAttendanceTemp());
}
catch (Exception ex)
{
 // TODO Catch
}

Thoughts?

Regards,

Diane

Former Member
Not what you were looking for? View more on this topic or Ask a question