I have a table created in design time. This table is meant for the user to enter some data at runtime.
I tried to change the tableCellRender to DropDownByIndex or Key.
I populated the table with three rows using the following statement:
wdContext.nodeCONDITIONS_valueNode().addElement(wdContext.createCONDITIONS_valueNodeElement());
Now I use the following code snippet from WebDynpro Help to populate the dropdown with values:
String[] conditionItems = new String []{"A", "B", "C", "D"};
List nodeElements = new ArrayList();
for (int i = 0; i <conditionItems.length; i++)
{
IPrivateCreateLoanView.ICONDITIONS_valueNodeElement conditionsElement = wdContext.createCONDITIONS_valueNodeElement();
conditionsElement.setCONDITION_TYPE(conditionItems<i>);
nodeElements.add(conditionsElement);
}
wdContext.nodeCONDITIONS_valueNode().bind(nodeElements);
wdContext.nodeCONDITIONS_valueNode().setLeadSelection(1);
What I expect is the table to render with dropdown showing the list of values: A,B,C,D. This comes up fine. When I select a value in any dropdown of the table, the values in the other dropdowns are changed as well!
How do I get over this?
Thanks in advance,
reza