on 01-23-2008 10:56 AM
Hi,
I m having an value attribute V1 of type string.
i have create an simple type called ST.
i want to convert V1 of the type string to ST.
how could i do this.
thnaks in advance,
Venkat
Hi,
You can do that by creating the ST dynamically like below:
IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(<attributename>);
// Your attribute info
ISimpleTypeModifiable simpleType = attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet vs = simpleType.getSVServices().getModifiableSimpleValueSet();
vs.put(<key>,<value>);
vs.put(<key>,<value>);
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You mean to say you have an attribute of String type and a ST created at design time and now at run-time you want to convert the datatype of the attribute into the created ST. I dont think that it is possible.
If you want to the same at the design time only then you can always select the type from the dictionary after creating the ST.
thanks & regards,
Manoj
Hi,
You can change this by
Create a dictionary simple type of type string
Go to the enumeration tab
Add new values.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.