PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Managing a sorted TreeView Table control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
TableSortChild (Function)
In French: TableTrieFils
Sorts a branch in a TreeView Table control on one or more columns.
Versions 18 and later
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 18
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codePHP This function is now available for the PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Example
// Sort the "Designation" and "Price" columns in the "TVT_Product" control
// The "Designation" column is sorted in ascending order
// The "Price" column is sorted in descending order
TableSortChild(TVT_Product, Null, "Designation", "-Price")
// Sort the branch in descending order
TableSortChild(TVT_Product, ...
"Plumbing" + TAB + "Faucets", "Designation", "-Price")
Syntax

Sorting a branch in a TreeView Table control on one or more columns identified by their name Hide the details

<Result> = TableSortChild(<TreeView Table Control>, <Branch to Sort>, <Name of Column 1> [, ... [, <Name of Column N>]])
<Result>: Boolean
  • True if the sort was performed,
  • False otherwise.
<TreeView Table Control>: Control name
Name of TreeView Table control to use.
If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<Branch to Sort>: Integer or character string (with or without quotes)
If this parameter is an integer, it corresponds to the subscript of parent containing the branch to sort.
If this parameter corresponds to NULL, the sort is performed on the "Root" elements.
If this parameter corresponds to a character string, it corresponds to the parent element containing the branch to sort.
<Name of Column 1>: Character string with quotes
Name of first column to sort (up to 16 columns). This parameter has the following format:
"[<Direction>]<Column Name>" where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <Column Name> (character string): name of column to sort.
<Name of Column N>: Character string with quotes
Name of Nth column to sort (up to 16 columns). This parameter has the following format:
"[<Direction>]<Column Name>" where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <Column Name> (character string): name of column to sort.

Sorting a branch in a TreeView Table control according to a list of column names Hide the details

<Result> = TableSortChild(<List of Columns> , <Branch to Sort>)
<Result>: Boolean
  • True if the sort was performed,
  • False otherwise.
<List of Columns>: Character string
List of columns to sort (up to 16 columns). This parameter has the following format:
"[<Direction>]<Name of Column1> + TAB + [<Direction>]<Name of Column2> + TAB + ..." where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <Column Name> (character string): name of column to sort. The column name is returned by TableEnumColumn.
<Branch to Sort>: Integer or character string (with or without quotes)
If this parameter is an integer, it corresponds to the subscript of parent containing the branch to sort.
If this parameter corresponds to NULL, the sort is performed on the "Root" elements.
If this parameter corresponds to a character string, it corresponds to the parent element containing the branch to sort.

Sorting a branch in a TreeView Table control on the first ten visible columns Hide the details

<Result> = TableSortChild(<TreeView Table Control> , <Branch to Sort> [, <To Sort>])
<Result>: Boolean
  • True if the sort was performed,
  • False otherwise.
<TreeView Table Control>: Control name
Name of TreeView Table control to sort. This parameter has the following format:
"[<Direction>]<TreeView Table Control>" where:
  • <Direction> (character) indicates the sort direction:
    • "+": ascending sort (by default),
    • "-": descending sort.
  • <TreeView Table Control> (character string): name of TreeView Table control to sort.
<Branch to Sort>: Integer or character string (with or without quotes)
If this parameter is an integer, it corresponds to the subscript of parent containing the branch to sort.
If this parameter corresponds to NULL, the sort is performed on the "Root" elements.
If this parameter corresponds to a character string, it corresponds to the parent element containing the branch to sort.
<To Sort>: Optional boolean
Remarks

Managing a sorted TreeView Table control

Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment