Skip to Content
0
Former Member
Jul 02, 2009 at 10:38 AM

Dropdown

25 Views

Hi,

I had a table in which one of the column is a dropdown element.

I added some elements to the dropdown. But when the table is displayed, the dropdown is showing as disabled and not able to see all the elements I added.

I am able to see the element which is selected initially.

Set keys = valueMap.keySet();

String key, value;

IPrivateReportView.IDropDownElement ele;

IPrivateReportView.IDBTableElement dbEle;

Map valueMap;

String selectKey;

int counter = 0;

for (Iterator iter = keys.iterator(); iter.hasNext();) {

key = (String) iter.next();

value = valueMap.get(key).toString();

ele = dbEle.nodeDropDown().createDropDownElement();

ele.setId(key);

ele.setText(value);

dbEle.nodeDropDown().addElement(ele);

if (key.equals(selectKey)) {

dbEle.nodeDropDown().setLeadSelection(counter);

}

counter++;

}

Can anyone help on this.

Regards

MQ