on 06-02-2005 7:02 AM
Hello,
I've created a Simple Type Enumeration in my Web DynPro Project's Local Directory.
I see that there is an option there to generate a class representation of this Enumeration. Can someone please show me an example code of how to use this Class. For example, to go over the Enumeration and get all the values?
hi Roy,
Try this.
Iterator chk =
wdContext.nodeB().getNodeInfo().getAttribute("val").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet().entrySet().iterator();
I will check it and tel u in some time...
Regards
Bharathwaj
Message was edited by: Bharathwaj R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
It will show a null pointer exception if their is no attribute of that name.
wdContext.getNodeInfo().getAttribute wil look at attributes directly under the root of the context. To access elements inside a node have to write
wdContext.node<name>().getNodeInfo().getAttribute("val name").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet().getText("value of enumeration text"));
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can go write
wdContext.getNodeInfo().getAtrribute("Attribute").getModifiableSimpleType().getsvsERVICES().getModifiableSimpleValuesSet.getText("Key");
Regards,
Sowjanya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.