ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / TreeView Table functions
  • A collapsed or expanded node can be visible or not
  • Selection bar
  • Runtime speed
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the state of a TreeView Table control node: rolled up, unrolled or non-existent.
Reminder: At runtime, a node is unrolled when the "-" sign precedes the node name.
Example
// Etat d'un noeud
SWITCH TableItemStatus(TABLEH_Planning, "Racine" + TAB + "Noeud" + TAB + "Feuille2")
	CASE taError: Trace("Le noeud n'existe pas.")
	CASE taExpanded: Trace("Le noeud est déroulé.")
	CASE taCollapsed: Trace("Le noeud est enroulé.")
END
Syntax

Status of a node by specifying the row number Hide the details

<Result> = TableItemStatus(<TreeView Table control> [, <Row number>])
<Result>: Integer constant
Status of specified node:
taCollapseThe node is collapsed
taErrorNode not found
taExpandThe node is expanded
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Row number>: Optional integer
Number of the row containing the node to use. If this parameter is not specified, the status of the node found in the current row is returned.

Status of a node by specifying its name Hide the details

<Result> = TableItemStatus(<TreeView Table control> [, <Node name>])
<Result>: Integer constant
Status of specified node:
taCollapseThe node is collapsed
taErrorNode not found
taExpandThe node is expanded
<TreeView Table control>: Control name
Name of the TreeView Table control to be used.
<Node name>: Optional character string
Name of node to use. This parameter has the following format:
"<Nom de la racine>" + TAB + ["<Nom du 1er noeud>" + TAB + ...
["<Nom du 2ème noeud>" + TAB + [...]]]"<Nom de la feuille>"
A WLanguage error occurs if this parameter does not correspond to an existing branch.
If this parameter is not specified, the status of the node found in the current row is returned.
Remarks

A collapsed or expanded node can be visible or not

The status returned corresponds to the internal status of the element. An expanded element is not necessarily visible because one of its parents may be collapsed.
For example: If the node "Recipes" + TAB + "Desserts" is rolled up, the node "Recipes" + TAB + "Desserts" + TAB + "Ice cream" can be rolled up or unrolled.

Selection bar

TableItemStatus does not change the position of the selection bar.

Runtime speed

The runtime speed of syntax 1 is faster than the runtime speed of syntax 2.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help