on 02-17-2014 7:19 PM
Hi Java Web Dynpro gurus
If I'm wrong please correct me. I know the all context nodes are collections.
I want to convert a value attribute on ArrayList. With the aim of use the method "contains" instead of walking with cycling registers (for cycle).
Is it posible?
Best Regards,
Victor Carmona
That is not possible victor....
There is no standard function to convert Context to Arraylist but it can be done by iterating the node using the following code.
"Messages" is the context name in below case.
IWDNode node = wdContext.currentMessagesElement().node();
List<String> allMsgIds = new ArrayList<String>();
IMessagesElement element= wdContext.currentMessagesElement();
for(int i=0;i<node.size();i++){
element = (IMessagesElement) node.getElementAt(i);
allMsgIds.add(element.getMessageID());
}
and then you can use "Contain" function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
didn't get u....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
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.