cancel
Showing results for 
Search instead for 
Did you mean: 

Removal of unwanted rows in a table

Former Member
0 Kudos

Hi,

I have a table in Web Dynpro whose contents are obtained from R3. The table is populated in 2 ways with 2 different sets of import params passed to the R3 system. I get 6 values in the 1st method and 3 rows in the 2nd method. I need to delete the empty rows in the table when i get only 3 rows from the backend( there are 3 left empty). So i need the visible rows in the table to be exactly the same as the no. of rows returned from R3. Could someone pls tell me the exact way to do this.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sunil,

Set the VisibleRowCount of the table to -1. This will show only those number of rows in table as the no: of elements you have created for the node. So when your BAPI returns 'n' rows, the table will show exactly 'n' rows.

Hope this helps,

Best Regards,

Nibu.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Create a context attribute and set it to the size of your table node as soon as you get the data.

assign this attribute to VisibleRowCount property of table UI element

Hope this will help you

NEx

Former Member
0 Kudos

Hi Sunil,

what you can do is , bind the visiblerowcount property of your table to some attribute and then set this attribute to the number of rows you want to see.

regards,

rahul