Skip to Content
avatar image
Former Member

table sorting in ascending and descending order

hi

i have two table where i have perform ascending and

descending , sorting on the two tables w.r.t column , and

these two tables are of Model Node , called from RFC .

i have checked some of the document where the

table sorting done on the table my creating the value node

elements and using wdDoModify(), where table is created dynamically , i have created the table in the

transcontainer with applytemplate and took the elements

from the RFC MOdel node . now i need to sort the

table columns in ascensing and descending order . each and

every column . all the examples for TABLE SORTING documents i have gone through are using VALUE NODE

, but i am using MODEL NODE and i am declaring the table

and not dynamically .

i have to perform the table sorting . can any one help me out

it very urgent ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 21, 2008 at 06:17 AM

    Hi

    There is no difference between value and model node sorting.

    I am not sure which document you are following. well, if it is a general sorting available in SDN,

    In wdDoModifyView() you are getting the current table ID

    see

    IWDTable table = (IWDTable) view.getElement("Table_0");
    // Where Table_0 is the ID of the table you created/placed in the view layout.
    

    we need to pass the id of the table to the sorting java class in order to invoke the constructor of TableSorter.java

    Please follow [Table sorting blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3287] [original link is broken]; for reference.

    Mandeep Virk

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 03, 2011 at 05:30 AM

    bbbb

    Add comment
    10|10000 characters needed characters exceeded