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

Sorting ViewTable

Hello,

My ViewTable is associed at Inode,

Inode as cardinality 1.n

the Fields of View are FirstName and LastName

I want to sort by LastName Ascending!

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 02, 2005 at 11:03 AM

    Hello Mario,

    Check appropriate tutorial:

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro tutorial and sample applications.faq#q-11 How to create tables in Web Dynpro?

    <i>Key features covered: sort a table (temporary), operating with detail forms, selecting multiple rows, calculated attributes </i>

    Best regards, Maksim Rashchynski.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Maksim Rashchynski

      Hi Mario,

      In the system where you have installed NDS,

      Go to <folder name>\Program Files\SAP\JDT\eclipse\examples

      There will be Webdynpro_Table.zip there

      You will get tablesorter.java from it

      Regards

      Rohit

      Message was edited by: Rohit Radhakrishnan

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 11:11 AM

    hi

    u can use this code for sorting

    //@@begin wdDoModifyView

    if (firstTime)

    {

    IWDTable table = (IWDTable) view.getElement("ShoppingBasket");

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

    }

    //@@end

    on the action sort

    onActionSort()

    //@@begin onActionSort(ServerEvent) wdContext.currentContextElement().getTableSorter().sort(wdEvent, wdContext.nodeProducts());

    //@@end

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2005 at 12:35 PM

    Hi mario,

    FOr more reference regarding the Tablesorter refer the link.This one is damn good yar.

    http://help.sap.com/saphelp_erp2005/helpdata/en/93/6ce9403070712ae10000000a155106/frameset.htm

    Hope this helps u,

    Regards,

    Nagarajan

    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.