cancel
Showing results for 
Search instead for 
Did you mean: 

how to set Dropdown list in tablen whith others Dropdown values in each row

Former Member
0 Kudos

how to set Dropdown list in tablen whith others Dropdown values in each row of the table

View Entire Topic
Former Member
0 Kudos

hi ,

You have to add the parent element before adding data to the child node ...you follow the below steps it will work

1) Take ContextStructure as follows ...

tabledata (valuenode)

ddownbyindex( value node) --within the tabledata node

value (attribute)

2)Binding to your layout

tabledata (node) ---bind this to the dataSource property of your table

ddownbyindex( node)

Value (attribute)--bind to the texts property of you DDbyIndex

3)In wdinit() method add the following code

IPrivate<Your view name>.ITabledataElement tabledataElement =wdContext.createTabledataElement();

wdContext.nodeTabledata().addElement(tabledataElement);

for(int i=0;i<5;i++)

{

IPrivate<Your viewname>.IDdownbyindexElement ddbyindexElement=wdContext.createDdownbyindexElement();

ddbyindexElement.setValue("Value"+i);

wdContext.nodeDdownbyindex().addElement(ddbyindexElement);

}

And set the cardinality property of the table node as 0..n

and dropdownbyinex node to 1..n

You try it ...

Regards

Madhavi

Edited by: madhavi kotra on Sep 2, 2008 6:00 PM