Skip to Content
author's profile photo
Former Member

Problem in sorting of table data

Hi all,

I had gone through the PDF given (Developing with tables in webdynpro).

i got struck in creating TableSorter.java file...

can any one tell me how to create that java file in my project and how to send the colum which i want to sort to TableSorter.java

Regards

Padma

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 06:13 AM

    To implement it ,create a value attribute say "sorter" of java native type

    com.sap.tc.webdynpro.tests.utils.TableSorter. (The package name MIGHT be different.)

    In wdDoModifyView,obtaine a refernce to the table objject like

    table = (IWDTable)view.getElement("table ui name);

    and use

    wdContext.currentContextElement().setSorter(

    new TableSorter(table, wdThis.wdGet

    <action name for sort>Action(), null));

    Now inside that action handler,

    wdContext.currentContextElement().getTableSorter().sort(wdEvent,

    wdContext.node<nodename>());

    also chk it

    sort-a-table

    sort table columns

    Table Sorting ( In Case Insensitive order)

    null

    Add comment
    10|10000 characters needed characters exceeded