PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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")
// Add elements into the Organization Chart control (syntax 2)
// Root element
ElementCEO is OrgElement
ElementCEO.Title = "Big Boss"
OrgAdd(ORG_EXECUTIVE, ElementCEO)
 
// Child elements
Element2 is OrgElement
Element2.Title = "Production"
OrgAddChild(ORG_EXECUTIVE, 1, Element2)
 
Element3 is OrgElement
Element3.Title = "Sales"
OrgAddChild(ORG_EXECUTIVE, 1, Element3)
Syntax

Adding a child elements while specifying its characteristics Hide the details

<Result> = OrgAddChild(<Organization Chart control> , <Parent subscript> , <Title> [, <Content> [, <Image>]])
<Result>: Integer
  • Subscript of 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 subscript>: Integer
Subscript of parent element of element to add.
Remark: To add an element at the root of Organization Chart control, this parameter must be equal to 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 subscript> , <Element>)
<Result>: Integer
  • Subscript of 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 subscript>: Integer
Subscript of parent element of element to add.
Remark: To add an element at the root of Organization Chart control, this parameter must be equal to 0.
<Element>: OrgElement variable
Name of the Variable of type OrgElement describing the characteristics of the child element to be added.
Component: wd270obj.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment