cancel
Showing results for 
Search instead for 
Did you mean: 

Reading valueset of a mapped Simple Type

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try this code:

IWDAttributeInfo a = wdContext.nodeUsers().getNodeInfo().getAttribute("<attribute name>");
    	
int enumSize = a.getSimpleType().getEnumeration().size();

Regards,

Satyajit.

Former Member
0 Kudos

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