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

Web dynpro Table Problem

Hi,

Iam working on table customization in Web Dynpro(java). When i customize the table (say i do any calculations or soritng) and click on the apply button, the table is going to the last records.( i have made the visible row count of the table as 10. And if my table table has 30 records, after i do the customization, the table is going to the last 10 records as "Row 20 of 30") Is there any option or property of the table where i can set the first records of the table as visible even after customization of the table?

Please suggest.

Regards,

Padmalatha.K

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 Jun 14, 2008 at 08:36 AM

    You can bind the "firstVisibleRow" property to a context attribute and set this attribute as needed.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2008 at 08:04 AM

    Hi Latha,

    According to my understanding this will resolve the issue.

    You can set the lead selection of the node binded to the table to first row.

    wdContext.nodeXXXXX().setLeadSelection(0);

    If not explain ur requirement properly.

    Thanks

    Madhu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2008 at 09:07 AM

    Hi Armin,

    Thanq for replying.

    Can you explain how to bind this property of the table to a context attribute dynamically?

    Regards,

    Padmalatha.K

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      <ul><li>Create a new "Value Attribute" of type "integer" in your context.</li>

      <li>Go to "Outline" View, select the table and look at the properties. select the property "firstVisibleRow" and click on the button next to it. Now you can see your context. Select the value attribute you just created.</li>

      <li>

      wdContext.currentContextElement().set<attributeName>(<rowNumber>);

      </li></ul>

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.