cancel
Showing results for 
Search instead for 
Did you mean: 

table sorting in ascending and descending order

Former Member
0 Kudos

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 ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

bbbb

Former Member
0 Kudos

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