Experience on ivx in common variable ordering function

In ivx variables are often used in common to a variable, and it can be an array element type, and therefore are used as data sources to create the cycle, when we want to create out of circulation list is sorted, the operation is actually a sort of general internal variable element, said about the specific operation of this sort today.

We have this common variable, for example, contains an element employees within the common variable properties of the element is an array, each array element contains two sub-elements, number and lastName. In order to facilitate observation, we will array common variable elements of employees was circulated as a data source is created, create a loop in the binding text the current number and lastName data. It can be seen that the initial state is a number of the order of 3,2.
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Click on the button in the sort of event we sort of global variables. The first is an array of paths to choose where to universal values in specific variables to be sort of the array; then sort the column name, where we can directly fill in the child element name "number"; the last is to choose Sort.
Here Insert Picture Description
Now click on the button to see the list is sorted by number of small to large values of the sort.
Here Insert Picture Description
Supplementary
sort of two-dimensional arrays and array of objects to directly select the column name and sort can be.
Experience on ivx in common variable ordering function

Guess you like

Origin blog.51cto.com/14556317/2484781