auto_stories Bilgi Bankası chevron_right Form chevron_right Makale

Ganttv5

The Gantt tool, is used to visually plan and track project timelines.

It shows when each task starts, when it ends and how much of it is completed . It can also show connections between tasks (before–after relationships) .

 

Appearance in Toolbox

Appearance in Free Form

Appearance in Responsive Form

Appearance in Flexible Form

 

Compatibility

Free Form

Responsive Form

Flexible Form

Mobile

Properties of the Gantt Tool:

 

Type:  Shows the field type of the added form tool. This value cannot be changed.

Name: A name is given to the form tool. In actions used in the form, this name is used as the Gantt_1 field name.

Edit Form: Sets the form from which the data used in the Gantt chart is taken. This form is the source of the project information.

All forms defined in the current module (for example project forms) are listed here. Click the small triangle icon on the right to open the list and choose the form.

Completion- Heading-Start-Finish: All fields under this heading are mapped to the edit form's fields. The fields you choose correspond to fields in the edit form, and the mapping must follow this.

If no query is written in the Data Query field for the edit form's table, the 'Completion- Heading-Start-Finish' fields are not listed. Choose the edit form first, then write the Data Query, and then fill these four fields.

Completion: The field that shows what percentage of the task in the Gantt chart is completed.

When entering the Completion % value through the Edit Form, enter it as a decimal, not a percentage.

For example, for a completion of 5% enter 0.05 in the Edit Form, 0.5 for 50% and 1 for 100%. This way the Gantt tool calculates the completion correctly and shows it on the bar.

Heading: Used as the title (description) field of the selected form. Usually the column with project or task names is chosen.

This field, in the action, in the Gantt chart on the Client side is shown under the Description column. Rows and sub-levels (hierarchy) in the chart are listed by the values in this field.

So for the Heading field, project name, task name or similar descriptive information is recommended.

 

Start:Choose the name of the field where the start date is entered.

Finish:Choose the name of the field where the end date is entered.

Main Task:This field shows the relationship between the saved projects coming from your query (database table). It contains an ID value expressing how projects are linked.

If your table has a ParentID field showing the hierarchy between projects, it is used as "Main Task". For example:

  • Main (parent) projects have a ParentID of 0. They are not linked to any other project.
  • Sub (child) projects have the UserTableID of their main project as ParentID.

This defines the hierarchy between projects. In structures like Gantt charts it shows the dependencies between tasks.

 

Connection Form:The form where connections between tasks in the Gantt chart are defined. When a relationship is created on the client by drawing an arrow between projects, it sets the form where the related records are saved.

Resource ID: In the form where related records are saved, the field representing the start (source) point of the arrow in the connection. In other words, the reference field showing which task the connection comes from. It keeps the ID of the task the arrow starts from.

Target ID: In the form where related records are saved, the field representing the target task the arrow points to, keeping that task's ID.

Time Interval: A parameter, in minutes, that sets the intervals at which tasks are shown on the timeline. With it, tasks are placed on the time axis every 15, 30 or 60 minutes, for example. The level of detail is set by this value.

Help Text:  Text shown as a description when the mouse is moved over the form tool.

Height/Width: Sets the height and width of the form tool.

From left-top: Sets the distance of the form tool from the left and top.

The Width field and From left-top have been removed from Responsive Forms.

Connection Query (Sql Server): If there are connections (dependencies) between tasks in the Gantt chart, this SQL query lets the system read and visualise them. The relational data showing how tasks are linked is retrieved through this query. If connections are not used and this field is left empty, the Gantt chart still works; only the connections (arrows) are not shown. If the linked data is in a separate relational structure, it must be defined with this query. If all data is shown in one query, Data Query alone is enough.

Data Query: The field where the query is written that sets which data the system uses to build the tasks listed in the Gantt chart. This query provides the basic data that sets how tasks are ordered, in which date ranges they appear and which tasks are linked.

Also, for the hierarchy between tasks to be built, this query must include the ParentID field. ParentID is the field that shows which main task a task belongs to. If it is not used, the Gantt chart shows tasks only as a flat list and cannot build sub-task – parent-task relationships. So ParentID is mandatory both for nesting tasks and for grouping them logically. Main tasks must have a ParentID of 0, and sub-tasks must carry the ID of their parent task.

The Importance of CONVERT in the Data Query

Some Gantt components require fields such as UserTableID and ParentID to be of type int .
If these fields are NVARCHAR, VARCHAR, UNIQUEIDENTIFIER or another type, the Gantt chart may not work or connections may not appear. So;

*CONVERT(INT, UserTableID) AS UserTableID,

*CONVERT(INT, ParentID) AS ParentID

as type conversions may be required.

Fit Horizontal: Stretches the form tool to the full screen on the user's screen.

Display : When this is turned off, the form tool becomes invisible on screen.

 

Gantt Example:

Let's create a scenario to track projects with the Gantt tool. In it we see linked projects, track when they start and end, and see their completion percentages. We can also see this information on the client and edit it easily on the Gantt.

Two forms are needed to use the Gantt tool. First, create a form (table) where projects are saved. Add project name, start and end dates, completion percentage and Parent ID (parent project ID) fields.

Enter a few project records from the client.

To view the added records, we can use the query below on our Projects table: 

SELECT
    Projects.UserTableID,
    Projects.ProjectName,
    Projects.StartDate,
    Projects.EndDate,
    Projects.CompletionRate,
    Projects.ParentID
FROM
    dbo.Projects WITH (NOLOCK)

 The output of this query is as follows:

Then create a new form named ProjectConnections where the connections between tasks are defined. Add fields (figure boxes) named SourceID and TargetID and save.

This form is assigned to the Connection Form property of the Gantt element. In the same properties, the corresponding field names in this form (SourceID and TargetID) are entered in ResourceID and TargetID.

 

Finally, create a report-type form. Then choose the Gantt tool from the elements menu on the left and drag it onto this form.

 Then go to the Gantt tool's properties. First, so that tasks are shown in the Gantt chart, in the Data Query field write the query below:

SELECT 
                Convert(int,UserTableID) AS UserTableID,
                Projects.ProjectName,
                Projects.StartDate,
                Projects.EndDate,
                Projects.CompletionRate,
                Convert(int,ParentID) AS ParentID
FROM
                dbo.Projects WITH (NOLOCK)

After defining the query, fill the fields on the Gantt tool according to it. Heading ProjectName, which shows the project name; Start and Finish StartDate and EndDate respectively; CompletionRate for completion; and ParentID to build the task hierarchy. If connections between projects are used, the form holding the connections must also be defined. In the Gantt tool's properties, Connection Form write the name of the connection form. In the Resource ID and Target ID fields representing the source and target tasks, write the field names in the connection form, such as SourceID and TargetID, to set up the connection.

 

After these settings, we can follow when projects start and end, how they are linked and their progress visually, and even update this information directly on the Gantt chart. Save the project and go to the Client screen with run.

 

The Gantt tool on the client screen:

The Gantt chart in Xpoda Client:

1) Shows tasks and sub-tasks with start/end dates in a table and on a timeline. 2) Offers day/week/month/year views.

3) The system colours tasks according to their completion rates.

4) With the completion field, progress can be followed both as a number and as the fill of the bar.

5) Interactive operations such as adding tasks, defining sub-tasks and editing dates and durations by drag and drop are supported.

Updating Completion – by Drag and Drop:

Completion can be updated easily by dragging on task bars. For example, while the “Figma design approval” task was at 10%, dragging the filled part of the bar to the right raised it to 40%.

When this is done:

  • Instant Visual Update: the change is shown immediately on the client screen and the bar's fill reflects the new value.
  • Database Update: without running any SQL query, the column corresponding to the Completion field is updated automatically, so the change is synchronised in the interface and the database.

The images below compare the state before and after dragging, both on the Gantt screen and in the project data.

 

 

 

 

Changing Task Duration – by Drag and Drop:

Task start and end dates can be updated easily by dragging the task bar on the timeline.

For example, the “Figma design approval” task, planned for 21.07.2025 – 26.07.2025, was dragged to the right and its end date updated to 28.07.2025.

When this is done:

  • Instant Visual Update: the change is shown immediately on the client screen and the bar moves to the new date range.
  • Database Update: without running any SQL query, the columns corresponding to the Start and Stop fields are updated automatically.

 


Deleting Main Records with Sub-Tasks:

An existing task or sub-task can be deleted directly from the client screen.

Click the X icon on the right of the task's bar.

The confirmation window asks "Do you want to delete the selected records?".

When Delete is pressed, the task is removed from the Gantt screen and the corresponding record is deleted from the database.

When a main task with child tasks is deleted, the main task and all its sub-tasks are removed from the screen. However, only the main record is deleted from the database; sub-task records stay in the table with their ParentID.

So be careful when deleting main tasks with child records, and make sure the sub-tasks are also cleaned up in the database. Otherwise records whose ParentID no longer exists may remain and harm data integrity.

 

Adding a New Task – Add New Row Button:

The “Add New Row” button at the top left and right of the Gantt tool is used to add a new task.

  • When pressed with no record selected, a new task row named “New task” is created at the bottom of the list. This task is a parent task, and the corresponding record is created in the database automatically.
  • When pressed while a project is selected, a new “New task” is created as a child (sub-task) of the selected project. The new task is saved with the selected project's ID in ParentID.
  • When hovering over “Add New Row” while a sub-task is selected, two options appear:
    1. Add New Row → adds a new sub-task under the selected sub-task. It takes the selected task's ID as ParentID.
    2. Add After Selected Line → adds a new task as a sibling of the selected sub-task. It has the same ParentID as the selected sub-task.
  • To rename the “New task” record, double-click the task row. This opens the edit form screen where the data feeding the Gantt is edited.
  • The edit form opens mapped to the clicked task's data, with “New task” shown as the default task name.
  • When the task name is changed and saved in the edit form and the form is closed, the Gantt screen updates automatically and the task is shown with its new name.

Connections Between Tasks:

The connection feature is used to define dependencies between tasks in the Gantt chart. It visually expresses in which order and under which condition tasks depend on each other in project planning.

  • Creating a Connection:
    Hold the end point of a task (the small circle/handle on its right) with the mouse and drop it on the start point of another task (the handle on its left) to draw a connection line between the two tasks.
  • Connection Types:
    Finish-to-Start (FS) connections are usually used (one task starts when the other finishes). Start-to-Start, Finish-to-Finish or Start-to-Finish relationships can also be defined as needed.
  • Database Record:
    When a connection is created, this relationship is saved automatically to the related fields in the database (e.g. SourceID, TargetID).
  • Deleting a Connection:
    An existing connection cannot be deleted from the client screen. It can be deleted:
    1. by deleting the related record from the grid/table screen holding the connection information, or
    2. directly in the database with an SQL query.
      When a connection is removed this way, the line disappears when the Gantt screen is refreshed.