Skip to main content

Timeline/Swimlane diagram

What it does

[PlainThe description]platform has a build-in timeline/swimlane chart generator.
It supports grouping lanes, moving and resizing tasks.

The datastructure has to be two entities, one for the lanes and one for the tasks.

Sample

image.png

image.png

First setup

[Optional, if extra config is required to get the codeunit working]

How to invoke

To view the timeline/swimlane chart, access main?command=com.tsnocode.integration.dhtmlx.SchedulerTimeline&SagID=[SagID]

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).

Options

To view a gantt chart, first access the page main?command=[Optionalcom.tsnocode.integration.dhtmlx.SchedulerTimeline options,to thatgenerate canthe 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 seta 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.

Configuration

[All

possibleconfigurations
Static configDefault valueDescription
Scheduler.ClickabletrueEnables clicking on a task to view it and whereclicking in empty space to editcreate them]

a new record
Scheduler.DataHigh3Number of task pr dataunit, to mark the group as "high" (red)
Scheduler.DataLinkcom.tsnocode.integration.dhtmlx.SchedulerSampleDataThe codeunit that is called to load data for the diagram.
Scheduler.DataPagerStep7Number of DataUnit to move the view, when clicking the arrows in the top-right corner
Scheduler.DataStep14Number of DataUnit to show at once
Scheduler.DataUnitdayUnit used on primary x-axis (minute, hour, day, week, month, year)
Scheduler.DateFormat%j. %MFormat of the primary x-axis
Scheduler.DragablefalseEnables dragging tasks around on the graph
Scheduler.Lines.Entity
System name for the entity containing the lines
Scheduler.Lines.Title
System name for the field containing the displayed names of lines
Scheduler.ResizablefalseEnables dragging to resize a task
Scheduler.RowHeight50Height of rows, in pixels
Scheduler.SecondFormat%j. %MFormat of the secondary x-axis
Scheduler.SecondScalefalseEnables the secondary x-axis
Scheduler.SecondUnitdayUnit used on secondary x-axis (minute, hour, day, week, month, year)
Scheduler.Task.Duration
System name for the field containing the duration of the task (in hours)
Scheduler.Task.Starts
System name for the field containing the start timestamp for the task
Scheduler.Tasks.Entity
System name for the entity containing the tasks
Scheduler.Tasks.Line
System name for the field containing a tasks reference to the line is is on
Scheduler.Tasks.Title
System name for the field containing the displayed name of a task

Developer info

  • Type: CodeunitPagecontent
  • Security: Requires session
  • Classpath: com.tsnocode.integration.dhtmlx.SchedulerTimeline