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

How to get the TableSorter File in to project

Hi

I am developing Table Example application.

i want to implement table sort on that table.

to implement that we need TableSorter Java Class to achive this.

so please let me know how to get that file in to my project.

regards

mmukesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 06:20 AM

    Hi

    Open the link given below and download the ready to use project. You can find the TableSorter.java file. Save it in ur local and copy paste into ur project.

    tablesorterwww.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bad3e990-0201-0010-3985-fa0936d901b4">tablesorter>

    Regards,

    Rathna

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      How to Upload TabelSorter.java in to our project.

      i am placing com.test.util.TableSorter.java in to the src/package in the workspace/TableProject

      but its not showing when i want to assign context attribute to java class.

      regards

      mmukesh

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 06:54 AM

    From the above reply you can get the TableSorter.java file.

    Follow the below steps to achieve sorting the table:

    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>);

    Hope this helps.

    Regards,

    Amar.

    Message was edited by:

    Amar Bhagat Challa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:42 AM

    Hi Mukesh,

    The sort functionality applies for all the columns of the table.

    Regards,

    Amar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 07:53 AM

    Once you have placed the TableSorter.java in the mentioned path, perform a refresh to the project in the Navigator view.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 08:33 AM

    Please refer the below link:

    Hope this helps :

    How to sort a table using a single column only???

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2007 at 02:24 PM

    Hi Mukesh,

    If you are using NetWeaver2004s then go through the fllowing blog, which helps you to in adding the TableSorter class to your project and applying the sorting on AllColumns or on Required Columns with an example. You can even download the TableSorter class from this blog.

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

    Regards,

    Jhansi

    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.