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

How to change page of table dynamically?

I have a table with pagination in which i am searching one item if table has 10 page i want to show that page which corresponds to the search item for which i need to show the page which has the item but i am not able to show the page even after setting the property

oTable._oPaginator.setCurrentPage(2)

Any help would be highly appreciated

Thanks and Regards

:S

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2015 at 11:02 AM

    Hi Muhammad,

    try to add the following code:

    if (oTable._oPaginator.getDomRef()) { oTable._oPaginator.rerender();

    }

    Even though it is not recommended to access the Paginator in that way, as _oPaginator is a private property of the table.

    A cleaner way would be to extend the sap.ui.table.Table and add a new method for your requirement.

    Regards,

    Daniel

    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.