hi all,
can any one suggest me a better method for copying a node element to a new node.I am using the following code.. is there any alternative..?
String string = wdContext.nodeFlight_List().getFlight_ListElementAt(lead).getAirline();
String string1 = wdContext.nodeFlight_List().getFlight_ListElementAt(lead).getAirportfr();
String string2 = wdContext.nodeFlight_List().getFlight_ListElementAt(lead).getAirportto();
String string3 = wdContext.nodeFlight_List().getFlight_ListElementAt(lead).getCityfrom();
String string4 = wdContext.nodeFlight_List().getFlight_ListElementAt(lead).getCityto();
IPrivateResult_view.IDummyElement ele = wdContext.nodeDummy().createDummyElement();
ele.setAirline(string);
ele.setAirportfr(string1);
ele.setAirportto(string2);
ele.setCityfrom(string3);
ele.setCityto(string4);
wdContext.nodeDummy().addElement(ele);
*********************************************************************************************in next view***
IPrivateTable_view.IDummyElement ele = wdContext.createDummyElement();
ele.setAirline(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getAirline());
ele.setAirportfr(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getAirportfr());
ele.setAirportto(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getAirportto());
ele.setArrdate(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getArrdate());
ele.setArrtime(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getArrtime());
ele.setCityfrom(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getCityfrom());
ele.setCityto(wdThis.wdGetWd_dc_custom_componentController().wdGetContext().currentDummyElement().getCityto());
wdContext.nodeDummy().addElement(ele);