on 10-22-2009 8:05 AM
Hi gurus,
I have a question about removing elements in a model node. I have this context situation:
root model node
-Output node (0...1)
-Output_Ebeln (0...n)
-field1
-field2
This context is bind to a model and filled using a RFC.
When I call the execute method the Output_Ebeln node is filled. Now I remove di output node whit this:
for(int i=0; i<wdContext.nodeOutput().size(); i++) {
wdContext.nodeOutput().removeElementAt(i);
}
But is this the only method? Is there one less "expensive" and much better?
Thanks a lot.
Ok...I'll use the for iteration to remove single elements from the model node.
Thanks to all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just try
wdContext.nodeOutput().invalidate();
but nothing. I'm using a OVS custom controller and I try to insert the code above in the applyResult method and also in applyInputValues of the class that implements the IWDOVSContextNotificationListener interface. I want to remove the outupt results so that if you want to research you have all clean (without previous results).
I spent a lot of time and the only method that I found is removing elements with for iteration.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Welcome to SDN
u can use invalidate method to make the node collection null
wdContext.nodeOutput().invalidate();
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.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.