on 11-21-2007 10:13 AM
I have added dropdownbykey form element and binded it controller attribute node. I have put following code to initialize the drop down.
public void wdDoInit()
{
//@@begin wdDoInit()
String locations[] = new String[]{"Economy","Compact","Intermediate","Full Size","Premium","Luxury","Convertible","Mini Van" };
IWDNodeInfo csn=wdContext.nodeDropdown().getNodeInfo();
IWDAttributeInfo cattinfo=csn.getAttribute("location");
ISimpleTypeModifiable cmstype = cattinfo.getModifiableSimpleType();
cmstype.setFieldLabel("Cities");
IModifiableSimpleValueSet cvalueset=cmstype.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < locations.length; i++) {
cvalueset.put(locations<i>, locations<i>);
}
//@@end
}
when I am running application, a disabled dropdown box shown up. Can any body tell me how to fix this? or what I have been doing wrong?
Hi,
Change the cardinality of the node as 1..n from 0..n.It will enable.
karthik.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jawed
in the loop add these lines
IPrivateDropDownElement ele=wdContext.createDropDownElement();
--
--
--
--
wdContext.nodeDropDown.addElement(ele);
Best Regards
Chaitanya.A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
<b>Check the cardinality of the node bound to this control make it 1..n</b>
The property <b>selectedKey</b> must be bound to a context attribute Key having a simple type like String with a value set.
The selectable items of the drop-down list are the keys of the value set, the displayed texts are the corresponding values. The currently selected item is given by the current value of property selectedKey.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jawed
Only the DropDownListBox is disabled or rest all UI elements have the same problem
Looking like you havent created a node element..
create a node element and add that to node
Best Regards
Chaitanya.A
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.