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 / Organization Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Adds a child element into an Organization Chart control.
Example
// Ajout d'un élément "Racine" dans le champ Organigramme 
Boss is int 
Boss = OrgAdd(ORGA_MonOrganigramme, "Matthieu Boss", "big boss", "Goldbar.gif")
// Ajout d'un élément fils
OrgAddChild(ORGA_MonOrganigramme, Boss, "Production")
// Ajout d'éléments dans le champ Organigramme (syntaxe 2)
// Elément Racine
ElémentPDG is OrgElement
ElémentPDG.Title = "Big Boss"
OrgAdd(ORGA_DIRECTION, ElémentPDG)

// Eléments fils
Elément2 is OrgElement
Elément2.Title = "Production"
OrgAddChild(ORGA_DIRECTION, 1, Elément2)

Elément3 is OrgElement
Elément3.Title = "Vente"
OrgAddChild(ORGA_DIRECTION, 1, Elément3)
Syntax

Adding a child elements while specifying its characteristics Hide the details

<Result> = OrgAddChild(<Organization Chart control> , <Parent index> , <Title> [, <Content> [, <Image>]])
<Result>: Integer
  • Index of the added element.
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Control name
Name of Organization Chart control into which the child element will be added.
<Parent index>: Integer
Index of the parent element of the element to be added.
Note: To add an element to the root of the Organization Chart control, this parameter must be 0.
<Title>: Character string
Title of element.
<Content>: Optional character string
Content of element.
<Image>: Optional character string
Image associated with the element. This image is displayed on the left of element title. This parameter corresponds to the name and to the full (or relative) path of image. A UNC path can be used.

Adding a child element by using the OrgElement type Hide the details

<Result> = OrgAddChild(<Organization Chart control> , <Parent index> , <Element>)
<Result>: Integer
  • Index of the added element.
  • -1 if an error occurred. ErrorInfo is used to identify the error.
<Organization Chart control>: Control name
Name of Organization Chart control into which the child element will be added.
<Parent index>: Integer
Index of the parent element of the element to be added.
Note: To add an element to the root of the Organization Chart control, this parameter must be 0.
<Element>: OrgElement variable
Name of the OrgElement variable that describes the characteristics of the child element to be added.
Component: wd300obj.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help