on 07-24-2007 8:00 AM
the below code works fine
but this shows 2 columns instead of 1 column that i bind using SimpleType
what can i do...
in this code, i only want to show the description not the value..
i dont want to use simpleType because, i need to dynamically create the value...
IWDAttributeInfo attributeInfo =
wdContext.getNodeInfo().getAttribute(IPrivateMain.IContextElement.COUNTRY);
ISimpleTypeModifiable countryType = attributeInfo.getModifiableSimpleType();
// Set field label and populate valueset
countryType.setFieldLabel("Country");
IModifiableSimpleValueSet valueSet =
countryType.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < 40; i++) {
valueSet.put("Key_" + i, "Country " + i);
}
// initialize context value attribute 'Country'
wdContext.currentContextElement().setCountry("Key_0");
Message was edited by:
yzme yzme
Use DropDownByKeyUI element instead of InputFieldUI !
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.