cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Grid Layout with multiple Dropdowns.

Former Member
0 Kudos

Hi

I have to create a page in webDynpro.

In that page there is a 2-D table structure and in each cell of that table there has to be a drop down.

Now, no. of rows will be decided at runtime. No. are colums are fixed.

How can i associate multiple dropdowns in each cell of column.

And manipulate number of rows to be displayed at runtime.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

1. Create a node with the no. of attributes(if using static values for dropdown) else no of subnodes (if using dynamic values for dropdown) that you would like to have as columns

2. Bind the table's datasource property to this node and each columns drowpdown selectedkey property to the respective attributes of the node.

3. In your code set the values for your node and the number of elements inserted would be displayed at runtime as the number of rows in your table.

Regards,

Murtuza

yogesh_galphade
Contributor
0 Kudos

Hi Saurabh

You can add rows runtime take a contextvarible and assing to table property 'Rows' in code you pass the table size.

Just add the only one dropdown in desired column, it will come in all cells

You can refer some of the links

https://www.sdn.sap.com/irj/scn/advancedsearch?query=tablesinwebdynpro+java&cat=sdn_all