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

TableSorter

Hi Everybody,

I have done the following steps :

1. Create a folder in the src->packages folder say util

2. Place the TableSorter.java in that folder.

3. Create a Context variable in the view say 'sorter' and in its properties enter the type say com.test.util.TableSorter

4. Get the table and assign the sorter context to it.

IWDTable table = (IWDTable)view.getElement("<table name>");

wdContext.currentContextElement().setSorter(new TableSorter(table,wdThis.wdGetSortAction(),null));

5. Create a method sort and write the below code: (the node in the code refers to the table)

wdContext.currentContextElement().getSorter().sort(wdEvent,wdContext.<node tablename>);

But still I am unable to get the sort action on the table.

I am unable to see the options.

Please help.

Thanks,

Sirisha Matta.

Message was edited by:

Supriya Manik

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 Sep 28, 2007 at 02:19 PM

    Hi Supriya,

    In wdDoModify method, please add following code

    if (firstTime) {
    IWDTable table = (IWDTable) view.getElement("Table");//Table UI elemnt ID
    		wdContext.currentContextElement().setTableSorter(
    			new TableSorter(table, wdThis.wdGetSortAction(), null));}

    Regards,

    ganga

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2007 at 02:18 PM

    Instead of creating a method you have to create an action (with an an according method which is created automatically) which you have to bind to the sort-action of the table.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 28, 2007 at 02:37 PM

    Hi Supriya

    Try this <a href="/people/bertram.ganz/blog/2006/03/07/enhanced-web-dynpro-java-tablesorter-for-sap-netweaver-04s

    Regards

    Chaitanya.A

    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.