on 12-15-2006 6:23 AM
Hi,
We have a attribute coming from a model. This attribute is of a simple type format.
we have a scenario where we have to read the number of values in the enumeration of the simple type.
Since its mapped , it a modifiablesimpletype could not be obtained.
How else can we get the vaue set ?
Regards
Bharathwaj
Hi Bharathwaj,
Check this
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this code:
IWDAttributeInfo a = wdContext.nodeUsers().getNodeInfo().getAttribute("<attribute name>");
int enumSize = a.getSimpleType().getEnumeration().size();
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Anil : Oh ya.. Just a simple type is sufficient...! I guess it should solve the problem .. ! Will try and update.
Satyajit : Not sure abt this. It should also work.
Enumeration might not exist. It throws a NULL pointer in my case.
Thanks and Regards
Bharathwaj
Message was edited by: Bharathwaj R
Bharathwaj R
User | Count |
---|---|
84 | |
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.