Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2151

Re: setsort is not working after create group in datawindow

$
0
0

Hello Yow,

 

Code wise, you can either add a sort()

 

dw_composite.Retrieve(InstCode,ll_list,ll_list_location,ll_list_maker)

dw_composite.SetSort(Sorting_Parm)

dw_composite.Sort()

 

OR move the setSort above the retrieve

 

dw_composite.SetSort(Sorting_Parm)

dw_composite.Retrieve(InstCode,ll_list,ll_list_location,ll_list_maker)

 

Have you checked the return code from the setSort() to make sure it succeeded?  I don't think your parameter in the SetSort() call will work.  Run the debugger and see what it is equal to and try using it in the painter.  I tried the '#' notation for column number in the painter and it doesn't work.  Try using the name instead.

 

Something like: Sorting_Parm = dw_composite.Describe('#'+SortColumnIndex_countsheet_pdf + '.Name') + ' '+ Left(Ordering, 1)


Viewing all articles
Browse latest Browse all 2151

Trending Articles