ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with reports and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
HierarchicalDepth (Property)
In french: ProfondeurHiérarchique
The HierarchicalDepth property is used to:
  • Find out the depth of a hierarchical control in a report.
  • Modify the depth of a hierarchical control in a report (only if the report uses a data source through programming).
This property can only be used in the events of a "Report on TreeView Table".
Example
// -- Avant impression du bloc corps
IF RUB_Col_Client.ProfondeurHiérarchique = 1 THEN
	RUB_Col_Client.CouleurFond = iLightGreen
ELSE
	RUB_Col_Client.CouleurFond = iWhite
END
Syntax

Finding out the level of a hierarchical control Hide the details

<Result> = <Control used>.HierarchicalDepth
<Result>: Integer
Depth of hierarchical field: 0 for the root, 1 for the first level, ...
<Control used>: Control name
Name of the hierarchical control to use.

Modifying the level of a hierarchical control Hide the details

<Control used>.HierarchicalDepth = <New depth>
<Control used>: Control name
Name of the hierarchical control to use. This report must use a data source programmatically.
<New depth>: Integer
New hierarchical field depth: 0 for the root, 1 for the first level, ...
Remarks
The HierarchicalDepth property applies only to reports based on TreeView controls.
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help