on 10-14-2008 5:11 PM
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
Hi,
In the catch block try to print the exception using:
wdComponentAPI.getMessageManager().reportException(ex.getMessage(),true);
This might give us a hint what is going wrong.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.