on 01-07-2009 9:08 AM
I need move a Model Object from one IWDNodeElement, to other IWDNodeElement.
Both elements are the same type.
I try with this code, but for some reason doesn't work always.
public void applyInputValues(IWDNodeElement applicationNodeElement, IWDNodeElement queryInputNodeElement) {
IWDNode node = queryInputNodeElement.node();
node.invalidate();
node.addElement(node.createElement(applicationNodeElement.model()));
}
Hi Sebestain,
from the method signature, i beleive that u are implementing Object value selector(OVS).
and no need to copy the data from the applicationNodeElement to QueryInputNodeElement, as they are pointing to the same node(QUERY Node which u have bind to the Value help search input field).
if i am wrong, please elaborate your query.
Thanks and Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
WDCopyService.copyElements(sourcenode,targetnode);
Thanks,
Tulasi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you try wdCopyService API?
wdCopyService.copyElements(source, target);
Please note: You will get WDRuntimeException - if target is a model node and source is not a model node holding the same class.
invalidate() works for only for value nodes. If you want to clear the model node you can try like this:
wdContext.current<rfc>_InputElement().modelObject().get<node>().clear();
Regards,
Siva
Edited by: Siva Rama Krushna on Jan 7, 2009 2:59 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.