Skip to Content
avatar image
Former Member

Table Sorter and Table Filter

Hi Experts,

My requirement is to achieve the functionality of both Table Sorter and Table Filter on the same table. i.e I have a table which displays data and there should be 2 buttons: one for Sorting and the other for Filtering.

By clicking on the appropriate button, the table data should either be sorted or filtered.

Is it posiible to achieve this?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Oct 09, 2007 at 11:15 AM

    Hi

    You can achieve the filter and sorting options in a single table. After adding two java files you can achieve this.

    Kind Regards,

    Saravanan K

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 11:19 AM

    yes it z possible...

    For sort, u can use TableSorter.java which generates an icon of its own after u click on a column.

    For filter, u can assign the onFilter property of the table column to a context variable and create an event handler for onFilter. or u can implement filter by adding a fixed top cell to the table column and handling the onEnter event of the cell editor.

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60d5b593-ba83-2910-28a9-a7a7c7f5996f

    /people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 06:58 PM

    You need the TableSorter.java to make the WD table sortable. Not sure if you have the file, if not, I can email you.

    Add comment
    10|10000 characters needed characters exceeded