Skip to Content
author's profile photo Former Member
Former Member

Removal of unwanted rows in a table

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 06:51 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2005 at 07:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2005 at 06:51 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.