on 07-02-2008 6:04 AM
Hello All,
I want to access the description corresponding to a 'Value' of a dictionary SimpleType. How do I achieve this?
Please help me.
regards,
Amey
ISimpleTypeModifiable modifiable = wdContext.getNodeInfo().getAttribute("Your Attribute").getModifiableSimpleType();
modifiable.hasSVService()
ISimpleValueServices simpleValueServices = modifiable.getSVServices();
IModifiableSimpleValueSet simpleValueSet = simpleValueServices.getModifiableSimpleValueSet();
for(int x=0; x<10;x++)
{
simpleValueSet.put(String.valueOf(x), String.valueOf(x));
}
Use get and put methods to insert and retrieve values to/from simple type.
Regards
Vinod V
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ISimpleTypeModifiable xxxx =
wdThis.wdGetAPI().getContext().getModifiableTypeOf("Context");
IModifiableSimpleValueSet aaaa=
countryType.getSVServices().getModifiableSimpleValueSet();
This context shud be a simple type
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
create a attribute in context node which should be mapped to the dictionary simple type.
this way you can access.
regards,
Pradeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.