setsort

Sets the sort for the DataWindow-Ebene.

Comparable with the PB-command "setsort()" and "sort()"

 

Call:

setsort=<name of the sort>=<sort>

 

This happens:

1. Variable "SORT" gets the name and the sort-condition

2. Text-field "t_sortierung" gets the sort-name

3. The sort is applied on the DataWindow

 

"setsort" without parameter executes the last defined sort

 

 

Example:

 

setvar=sort=article=itemcode

setsort

 

in a datawindow dw_1:

dw_1.setsort=u_matgrp,itemcode

dw_1.sort

 

 

The sort is reset after a TAB-Change. There is no command like tab=sort=...