PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
  • Branch to expand
  • Selection bar
  • Runtime speed for the TreeView Table controls
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
Expands:
  • WINDEVWEBDEV - Server codeWindows MobilePHP a branch that was previously collapsed in a TreeView Table control. The "child" nodes are visible in the control.
  • a break that was previously collapsed in a Table control. The break elements are visible in the control.
  • Versions 22 and later
    WINDEV a detailed window displayed for a row. See Managing the details of a table row for more details.
    New in version 22
    WINDEV a detailed window displayed for a row. See Managing the details of a table row for more details.
    WINDEV a detailed window displayed for a row. See Managing the details of a table row for more details.
Reminder: At run time, a node is expanded when the node name is preceded by "-".
WEBDEV - Server codeJavaPHP The breaks are not available on the Table controls in this version.
Java The breaks are not available on the Table controls in this version.
Versions 18 and later
PHP This function is now available for the TreeView Table controls in the PHP sites.
WEBDEV - Server codeWindows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the TreeView Table controls in the WEBDEV sites in Linux.
New in version 18
PHP This function is now available for the TreeView Table controls in the PHP sites.
WEBDEV - Server codeWindows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the TreeView Table controls in the WEBDEV sites in Linux.
PHP This function is now available for the TreeView Table controls in the PHP sites.
WEBDEV - Server codeWindows This function is now available for the TreeView Table controls in the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the TreeView Table controls in the WEBDEV sites in Linux.
Versions 20 and later
WEBDEV - Browser code This function is now available for the Table controls in Browser code.
PHP This function is now available for the Table controls in the PHP sites.
WEBDEV - Server codeWindows This function is now available for the Table controls in the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the Table controls in the WEBDEV sites in Linux.
New in version 20
WEBDEV - Browser code This function is now available for the Table controls in Browser code.
PHP This function is now available for the Table controls in the PHP sites.
WEBDEV - Server codeWindows This function is now available for the Table controls in the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the Table controls in the WEBDEV sites in Linux.
WEBDEV - Browser code This function is now available for the Table controls in Browser code.
PHP This function is now available for the Table controls in the PHP sites.
WEBDEV - Server codeWindows This function is now available for the Table controls in the WEBDEV sites in Windows.
WEBDEV - Server codeLinux This function is now available for the Table controls in the WEBDEV sites in Linux.
Versions 22 and later
Android This function is now available for the Table controls in the Android applications.
iPhone/iPad This function is now available for the Table controls in the iPhone/iPad applications.
New in version 22
Android This function is now available for the Table controls in the Android applications.
iPhone/iPad This function is now available for the Table controls in the iPhone/iPad applications.
Android This function is now available for the Table controls in the Android applications.
iPhone/iPad This function is now available for the Table controls in the iPhone/iPad applications.
Example
WINDEVWEBDEV - Server codeWindows MobilePHP
// Expands the selected branch in the TreeView Table control
TableExpand(TVT_ScheduleTable)
WINDEVWEBDEV - Server codeWindows MobilePHP
// Expands the entire TreeView Table control
TableExpand(TVT_ScheduleTable, 1)
// Equivalent to: TableExpandAll(TVT_ScheduleTable)
WINDEVWEBDEV - Server codeWindows MobilePHP
// Expands the specified branch in the TreeView Table control
TableExpand(TVT_ScheduleTable, "MyRoot" + TAB + "MyBranch")
Syntax
WINDEVWEBDEV - Server codeWindows MobilePHP

TreeView Table control: Expanding a branch while specifying the row number Hide the details

TableExpand(<TreeView Table control> [, <Row Number>])
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Row Number>: Optional integer
Number of the row containing the branch to expand. The branch found in the current row is expanded if this parameter is not specified.
WINDEVWEBDEV - Server codeWindows MobilePHP

TreeView Table control: Expanding a branch while specifying its name Hide the details

TableExpand(<TreeView Table control> [, <Branch Name>])
<TreeView Table control>: Control name
Name of TreeView Table control to use.
<Branch Name>: Optional character string (with quotes)
Name of branch to expand. This parameter has the following format:
"<Name of Root>" + TAB + ["<Name of 1st Node>" + TAB + ...
["<Name of 2nd Node>" + TAB + [...]]]"<Leaf Name>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
The branch found in the current row is expanded if this parameter is not specified.
WINDEVWINDEV MobileUser code (UMC)

Table control with breaks: Expanding a break Hide the details

TableExpand(<Table Control> [, <Row Number> [, <Break Name>]])
<Table Control>: Control name
Name of Table control to use. This control must have one or more breaks. Otherwise, this function has no effect.
<Row Number>: Optional integer
Number of the row whose break will be expanded. This number must corresponds either to the number of the current row, or to the number of the first row of the break to expand. If this parameter is not specified, the break of current row is collapsed.
<Break Name>: Optional character string
Name of break to expand. This parameter must be specified in case of nested breaks. It is used to define the break that will be expanded. By default, no break is expanded if the breaks are nested.

Table control with breaks: Expanding a break Hide the details

TableExpand(<Table Control> [, <Row Number> [, <Break Name>]])
<Table Control>: Control name
Name of Table control to use. This control must have one or more breaks. Otherwise, this function has no effect.
<Row Number>: Optional integer
Number of the row whose break will be expanded. This number must corresponds either to the number of the current row, or to the number of the first row of the break to expand. If this parameter is not specified, the break of current row is collapsed.
<Break Name>: Optional character string
Name of break to expand. This parameter must be specified in case of nested breaks. It is used to define the break that will be expanded. By default, no break is expanded if the breaks are nested.
Versions 22 and later
WINDEV

Table and treeview table: expanding a detailed window Hide the details

TableExpand(<Table Control> [, <Row Number>])
<Table Control>: Control name
Name of Table or TreeView Table control to use.
<Row Number>: Optional integer
Number of the row whose details must be expanded. If this parameter is not specified, the details of the current row are expanded.
New in version 22
WINDEV

Table and treeview table: expanding a detailed window Hide the details

TableExpand(<Table Control> [, <Row Number>])
<Table Control>: Control name
Name of Table or TreeView Table control to use.
<Row Number>: Optional integer
Number of the row whose details must be expanded. If this parameter is not specified, the details of the current row are expanded.
WINDEV

Table and treeview table: expanding a detailed window Hide the details

TableExpand(<Table Control> [, <Row Number>])
<Table Control>: Control name
Name of Table or TreeView Table control to use.
<Row Number>: Optional integer
Number of the row whose details must be expanded. If this parameter is not specified, the details of the current row are expanded.
Remarks

Use conditions

TableExpand can be used on:
  • WINDEVWEBDEV - Server codeWindows MobilePHP a TreeView Table control.
  • a memory Table control.
  • a browsing Table control loaded in memory.
  • WEBDEV - Server codePHP an Ajax Table control or a Classic Table control.
  • WEBDEV - Browser code a Browser Table control.
This function cannot be used on the browsing Table controls (direct access).

Branch to expand

TableExpand has no effect:
TreeView Table controlTable control with breaks
  • if the branch to collapse is not found.
  • if the branch to collapse is a leaf.
  • if the branch to collapse is already collapsed.
  • if the Table control contains no break.
  • if the Table control contains several breaks and if the break to expand is not specified.
  • if no row is selected in the Table control and if <Row Number> is not specified.
Remarks for the TreeView Table controls:
  • If <Row Number> or <Branch Name> corresponds to the branch contained in the first row, the entire hierarchy of the TreeView Table control is expanded (equivalent to TableExpandAll).
  • Versions 19 and later
    During the call to TableExpand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.
    New in version 19
    During the call to TableExpand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.
    During the call to TableExpand, if the specified branch includes a procedure associated by ..AddChildDelayed, this procedure will be run.

Selection bar

TableExpand does not modify the position of the selection bar.

Runtime speed for the TreeView Table controls

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment