on 01-22-2010 3:20 PM
I've created a simple data type which has an enumeration of 10 values associated with it. I'm currently presenting a read-only data field for the data type as a drop down by key field to get the descriptive text (via the enumeration) displayed on the page. However, the users have requested that a drop-down not be used; rather, they want to see just the descriptive text.
How can I do this? I've perused the api's, but I can't see how to get at the enumeration text for a given data type value.
if you have attribute in the context of the simple type you have created then:
IWDAttributeInfo loAttrInfo = wdContext.<node>.getNodeInfo().getAttribute("<attr_name>");
ISimpleType loSimpleType = loAttrInfo.getModifiableSimpleType();
ISimpleValueSet loValues = loSimpleT.getSVServices().getValues();
You can get your texts from 'loValues' now.
Regards,
Anton
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.