AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Diagrama de Gantt
  • Retrieving a task
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
Gets a task using its identifier in a Gantt Chart column in a Table or TreeView Table control.
Example
// Retrieve a task to modify it
MyTask is GanttTask
MyTask <- COL_Gantt.GetTask("ID2")
MyTask.Title = "New title"
// Retrieve a task
MyTask is GanttTask
MyTask = COL_Gantt.GetTask("ID1")
InfoBuild("Retrieved task: %1", MyTask.Title)
Syntax
<Result> = <Gantt column>.RetrieveTasks(<Identifier>)
<Result>: GanttTask variable
Name of the GanttTask variable from which the task characteristics are retrieved.
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<Identifier>: Character string
Identifier of the task to retrieve. This identifier corresponds to the ID property defined in the GanttTask variable.
A WLanguage error occurs if the specified identifier does not exist.
Remarks

Retrieving a task

To retrieve a task, you can:
  • use the "=" operator. In this case, you can get the characteristics of the retrieved task.
  • use the "<-" operator. In this case, you can dynamically modify the retrieved task.
1st case: Using the "=" operator.
In this case, you can get the characteristics of the retrieved task.
<Variable name> = GanttGetTask(<Gantt column>, <Identifier>)

For example:
// Retrieve a task
MyTask is GanttTask
MyTask = COL_Gantt.GetTask("ID1")
InfoBuild("Retrieved task: %1", MyTask.Title)

You also have the ability to retrieve a task by using the following syntax:
<Variable name> = <Gantt column>["<Identifier>"]

For example:
MyTask is GanttTask
MyTask = COL_Gantt["ID1"]
InfoBuild("Retrieved task: %1", MyTask.Title)


2nd case: Using the "<-" operator.
In this case, you can dynamically modify the retrieved task.
<Variable name> <- GanttGetTask(<Gantt column>, <Identifier>)
where Identifier is the identifier of the task to retrieve.
For example:
// Modify a task
MyTask is GanttTask
MyTask <- COL_Gantt.GetTask("ID1")
MyTask.Progress = 70
MyTask.ProgressColor = LightGreen

You also have the ability to retrieve a task by using the following syntax:
<Variable name> <- <Gantt column>["<Identifier>"]
For example:
t <-COL_Gantt["ID1"]
t.BackgroundColor = LightBlue
Component: wd290mdl.dll
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

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