# Timeline/Swimlane diagram

## <span class="mw-headline" id="bkmrk-what-it-does-1">What it does</span>

<span class="mw-headline">The platform has a build-in timeline/swimlane chart generator.  
It supports grouping lanes, moving and resizing tasks.</span>

<span class="mw-headline">The datastructure has to be two entities, one for the lanes and one for the tasks.</span>

**<span class="mw-headline">Sample</span>**

[![image.png](https://docs.tsnocode.com/uploads/images/gallery/2026-12/scaled-1680-/RZnv0rtqtFrPZR5L-image.png)](https://docs.tsnocode.com/uploads/images/gallery/2026-12/RZnv0rtqtFrPZR5L-image.png)

[![image.png](https://docs.tsnocode.com/uploads/images/gallery/2026-12/scaled-1680-/r7NIlcbGuYn4On51-image.png)](https://docs.tsnocode.com/uploads/images/gallery/2026-12/r7NIlcbGuYn4On51-image.png)

## <span class="mw-headline" id="bkmrk-how-to-invoke-1">How to invoke</span>

<span class="mw-headline">To view the timeline/swimlane chart, access main?command=com.tsnocode.integration.dhtmlx.SchedulerTimeline&amp;SagID=\[SagID\]</span>

<span class="mw-headline"><span class="mw-headline" id="bkmrk-first-setup-1">If you access the codeunit without a SagID, it will display some sample data.  
It can also pull data from a custom codeunit/source (not documented).</span></span>

### <span class="mw-headline">Options</span>

To view a gantt chart, first access the page main?command=<span class="mw-headline">com.tsnocode.integration.dhtmlx.SchedulerTimeline</span> to generate the required **static configurations**.  
Seven configurations are required:  
line entity, line title, task entity, task title, task duration, task start, task line.

The titles are displayed in the diagram, as is.  
The start time has to be a full timestamp, not just a date.  
The duration is given in hours.  
The task line is a reference to the line it is displayed on.

The DataLink should also be updated, at least `?SagID=[CURRECT SAGID]` should be added.

## <span class="mw-headline" id="bkmrk-configuration-1">Configuration</span>

<table border="1" id="bkmrk-static-config-defaul" style="border-collapse: collapse; width: 100%; height: 754.5px;"><colgroup><col style="width: 24.0763%;"></col><col style="width: 12.0745%;"></col><col style="width: 63.8493%;"></col></colgroup><tbody><tr style="height: 46.5938px;"><td style="height: 46.5938px;">**Static config**</td><td style="height: 46.5938px;">**Default value**</td><td style="height: 46.5938px;">**Description**</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">Scheduler.Clickable</td><td style="height: 46.5938px;">true</td><td style="height: 46.5938px;">Enables clicking on a task to view it and clicking in empty space to create a new record</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.DataHigh</td><td style="height: 29.7969px;">3</td><td style="height: 29.7969px;">Number of task pr dataunit, to mark the group as "high" (red)</td></tr><tr style="height: 96.9844px;"><td style="height: 96.9844px;">Scheduler.DataLink</td><td style="height: 96.9844px;">com.tsnocode.integration.dhtmlx.SchedulerSampleData</td><td style="height: 96.9844px;">The codeunit that is called to load data for the diagram.</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">Scheduler.DataPagerStep</td><td style="height: 46.5938px;">7</td><td style="height: 46.5938px;">Number of DataUnit to move the view, when clicking the arrows in the top-right corner</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.DataStep</td><td style="height: 29.7969px;">14</td><td style="height: 29.7969px;">Number of DataUnit to show at once</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.DataUnit</td><td style="height: 29.7969px;">day</td><td style="height: 29.7969px;">Unit used on primary x-axis (minute, hour, day, week, month, year)</td></tr><tr style="height: 35.3906px;"><td style="height: 35.3906px;">Scheduler.DateFormat</td><td style="height: 35.3906px;">%j. %M</td><td style="height: 35.3906px;">[Format of the primary x-axis](https://docs.dhtmlx.com/scheduler/guides/settings-format/)</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Dragable</td><td style="height: 29.7969px;">false</td><td style="height: 29.7969px;">Enables dragging tasks around on the graph</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Lines.Entity</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the entity containing the lines</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Lines.Title</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the field containing the displayed names of lines</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Resizable</td><td style="height: 29.7969px;">false</td><td style="height: 29.7969px;">Enables dragging to resize a task</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.RowHeight</td><td style="height: 29.7969px;">50</td><td style="height: 29.7969px;">Height of rows, in pixels</td></tr><tr style="height: 35.3906px;"><td style="height: 35.3906px;">Scheduler.SecondFormat</td><td style="height: 35.3906px;">%j. %M</td><td style="height: 35.3906px;">[Format of the secondary x-axis](https://docs.dhtmlx.com/scheduler/guides/settings-format/)</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.SecondScale</td><td style="height: 29.7969px;">false</td><td style="height: 29.7969px;">Enables the secondary x-axis</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.SecondUnit</td><td style="height: 29.7969px;">day</td><td style="height: 29.7969px;">Unit used on secondary x-axis (minute, hour, day, week, month, year)</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Task.Duration</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the field containing the duration of the task (in hours)</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Task.Starts</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the field containing the start timestamp for the task</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Tasks.Entity</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the entity containing the tasks</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Tasks.Line</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the field containing a tasks reference to the line is is on</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">Scheduler.Tasks.Title</td><td style="height: 29.7969px;">  
</td><td style="height: 29.7969px;">System name for the field containing the displayed name of a task</td></tr></tbody></table>

## <span class="mw-headline" id="bkmrk-developer-info-1">Developer info</span>

- <span class="mw-headline">Type: [CodeunitPagecontent](https://docs.tsnocode.com/books/codeunit-reference/chapter/pagecontent)</span>
- <span class="mw-headline">Security: Requires session</span>
- <span class="mw-headline">Classpath: com.tsnocode.integration.dhtmlx.SchedulerTimeline</span>