AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Organigrama
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds a child element into an Organization Chart control.
Ejemplo
// Add a "Root" element into the Organization Chart control
Boss is int
Boss = OrgAdd(ORG_MyOrganizationChart, "Vince Boss", "big boss", "Goldbar.gif")
// Add a child element
OrgAddChild(ORG_MyOrganizationChart, 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)
Sintaxis

Adding a child elements while specifying its characteristics Ocultar los detalles

<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 Ocultar los detalles

<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.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 17
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local