AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Diagrama de Gantt
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns:
  • the list of tasks between two given dates in a Gantt Chart column,
  • all the tasks in a Gantt Chart column,
  • a specific task (selected or hovered).
Example
// Liste toutes les tâches
tabListe is array of GanttTask
// Récupère la liste des tâches
tabListe = COL_Gantt.ListeTâche()
InfoBuild("Les tâches ont bien été récupérées" + CR + 
	"Le tableau contient %1 tâche(s).", tabListe.Count)
// Liste les tâches à partir de la date du jour
tabListe is array of GanttTask
// Récupère la liste des tâches
tabListe = COL_Gantt.ListeTâche(DateSys())
// Récupère la tâche sélectionnée
tabListe is array of GanttTask
// Récupère la liste des tâches
tabListe = COL_Gantt.ListeTâche(ganttSelectedTask)
InfoBuild("La tâche récupérée : %1.", tabListe[1].Title)
Syntax

Getting the list of tasks between two dates Hide the details

<Result> = <Gantt column>.ListTask([<Start date> [, <End date>]])
<Result>: Array of GanttTask variables
Name of array containing the GanttTask variables.
If a matching task is found, this array will contain a single element.
If no task matches the specified criteria, this array will contain zero tasks.
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<Start date>: Optional DateTime variable
Start date for task selection.
If this parameter is not specified, all tasks on the Gantt Chart will be returned.
<End date>: Optional DateTime variable
End date for task selection.
If this parameter is not specified, all tasks on the Gantt Chart will be returned.

Getting the details of a specific task Hide the details

<Result> = <Gantt column>.ListTask(<Type of task>)
<Result>: Array of GanttTask variables
Name of the array containing the GanttTask variable.
If a matching task is found, this array will contain a single element.
If no task matches the specified criteria, this array will contain zero tasks.
<Gantt column>: Control name
Name of the Gantt Chart column (in a Table or TreeView Table control) to be used.
<Type of task>: Integer constant
Type of sought task:
ganttHoveredTaskTask hovered by the mouse in the Gantt Chart control. If no task is hovered over, <Result> will be an array of zero elements.
ganttSelectedTaskTask currently selected in the Gantt Chart control. If no task is selected, <Result> will be an array of zero elements.
Component: wd300mdl.dll
Versión mínima requerida
  • Versión 26
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 25/09/2024

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