Skip to Content
0
Former Member
Feb 28, 2006 at 10:50 AM

DropDown in a Table

10 Views

Hi,

I have a table (bound to a model node 'li_Allocations') in which one of the columns is a DropDownbyIndex. I have bound this column to a value node 'Customer_DD'.

I am trying to set the default value of the dropdown column to the value in the li_alloc table for each of the rows. I have used the following code.

for (int i=0; i<wdContext.nodeLi_Allocations().size();i++)

{

IPublicSarniaAllocationComp.ICustomer_DDElement cust_ele= wdContext.createCustomer_DDElement();

cust_ele.setCustomer(wdContext.nodeLi_Allocations().getLi_AllocationsElementAt(i).getCustomer());

wdContext.nodeCustomer_DD().addElement(cust_ele);

}

But, only my first row is showing the default value. the remaining rows display a blank column.

Can anyone let me know what the problem is?

Thanks and Regards,

Reena