Official Content

Sometimes it may happen that, so as not to duplicate a Query object by changing the sort order of its elements in a same area to change the view, the developer changes it at runtime. This property allows sorting the fields in the PivotTable according to the order set in the Query object, or the order in which the developer loaded the &Axes collection in the Web Panel in run-time.

Values

False The sort order of the elements is as stated in the Query object. This is the default value.
True If there is code in any Web Panel event that places the elements in a certain order, this will be the order used. If there isn’t any code that rearranges the elements, the order stated in the Query object will be assumed.

Example

In the following example the property is set to True because the sort order in which the developer wants to show the Query object elements is different (reverse) than the order set at design time.

AllowChangeAxesOrder Property Query Example

Sub "SetAttributesOrder"
    &Axis = New()
    &Axis.Name = "ClientActive"  // First
    &Axes.Add(&Axis)
    &Axis = New()
    &Axis.Name = "ClientAdmissionDate"  // Second
    &Axes.Add(&Axis)
    &Axis = New()
    &Axis.Name = "ClientName"  // Third
    &Axes.Add(&Axis)
    &Axis = New()
    &Axis.Name = "ClientId"  // Fourth
    &Axes.Add(&Axis)
EndSub

AllowChangeAxesOrder Property Example

AllowChangeAxesOrder = False vs AllowChangeAxesOrder = True (the code work)

Scope

Output type Table, PivotTable


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant