Gantt control add-in for Business Central with AL API - release 8.0

Posted by Juergen Theis on Nov 30, 2023 11:29:29 AM

Discover the power of our Visual Scheduling Add-in Developers Toolbox (VSADT) with AL-API, designed to help you create a tailor-made planning board for your industry solution in Microsoft Dynamics 365 Business Central. Our latest major release brings a wealth of exciting enhancements and improvements, allowing you to build your very own visual scheduler with ease.

 

Internal refinement of system requirements

Originally, VSADT internally required the open-source libraries jQuery and jQuery UI. The reason to use jQuery UI (and therefore also jQuery, of course) was that it compensated incompatibilities between different browsers. Due to the advancements in both browsers and JavaScript, this is no longer relevant. That's why we decided to completely abandon jQuery and jQuery UI without sacrificing compatibility. This reduces the download requirements of your application by approximately 400 KB.

What does this mean for you as a developer? When integrating VSADT 8.0 into your application, you should take a look at the incorporated libraries and their versions. Some are now obsolete, and others are new. Especially image files are no longer required.

 

Extensions to links

Perhaps the most important extensions to the link object are link entries. Links visualize dependencies between two activities or allocations. They make it possible to express the semantics that, for example, activity B cannot be started until activity A has been completed.

link entry in the Visual Scheduling Add-in Developer Toolbox

In practice, a certain amount of time may elapse between the end of activity A and the start of activity B for various reasons. For example, the items that were processed during activity A must be transported to another resource for further processing. Or the items have to dry for a certain period of time before the next operation can start. Of course, the time waiting time for the availability of a resource can also influence the time interval between two activities.

Link entries allow you to visually divide the links into sections to highlight such special times. For each entry, you can specify a duration and a color. In the following illustration, for instance, you can see the red line section, which in this case represents the required transportation time.

New link entry in the VSADT for Business Central

It is also possible to have more than one entry per link.

Another great option in the context of links is the new setting LinksWithDanglingStartOrEndVisible. When rows are collapsed or visibility filters are used, it can happen that either the source or target element (an activity or an allocation) of a link is hidden. In such a situation, the link was previously not displayed at all.

Now you can set LinksWithDanglingStartOrEndVisible to True and the hidden element will be represented by a little circle. This way, the user is made aware of the existence of the link even though one of its connection points is missing temporarily.

The following animation shows the effect of this option when Activity 2 is hidden by using a visibility filter:

link entry in the VSADT to visualize hidden elements

As you can see, the horizontal positions of the circles correspond exactly to the respective connection points on the bars. In the vertical direction, they are positioned in the hidden row.

To make life easier, the new setting DefaultLinkTargetMarker can be applied to globally define the appearance of the target marker of the links. Of course, you can overwrite this value for each link individually by setting the TargetMarker property of the link.

 

Extension of the Activities View

The Activities View and the Resources View are, strictly speaking, two sides of the same coin. To bring both sides closer together, it has been possible for some time to display allocations (i.e., elements from the Resources View) in the Activities View as well. The following figure shows an example for such a view:

Activities View in the VSADT

Now, it is also possible to group the allocations according to the resources to which they refer by using the new setting ResourcesVisibleInActivitiesView:

new grouping in the Activities View of the VSADT

As you can see, this way of displaying has the advantage that now all allocations relating to a resource are displayed and not just those associated with the activity. The pale bars represent allocations that relate to other activities, while the blue bars represent allocations for the activity currently under consideration. The design of the first ones can be customized by the application.

There are a lot of further API extensions that empower you to customize the allocations and the resource rows in the activities view. For more details, please see in the IDD the descriptions for

  • setting AllocationBarDesignOfOtherActivity,
  • setting DefaultAllocationAllowedRowDragModesInActivitiesView,
  • setting DefaultResourceTableRowDefinitionIDInActivitiesView,
  • method SetResourcePropertiesForActivities, and
  • resource property AllocationRowsCollapseStateInActivitiesView

 

New sorting mode for activity and allocation rows

Previously, it was possible to specify the sorting of activity or allocation rows using a sort code. Now, activity as well as allocation rows can be sorted depending on their start and end dates. See the new value AscendingStartAndEnd for the settings ActivityRowSortMode and AllocationRowSortMode.

The following illustration should give you an idea of the effect of this type of sorting. On the left-hand side, you can see an unsorted diagram and on the right-hand side, you can see the same data in a chronologically sorted order.

new sorting mode in the VSADT

 

Enhancements to skills

Skill objects can now show allocation bars when the resources are collapsed. For this, use either the new CollapsedRowDesign property for skill objects or use the setting DefaultSkillCollapsedRowDesign to define it globally.

Another improvement to skills is the property AllowedRowDragModes. This allows skill rows to be moved interactively in the same way as resource rows.

 

Smart dragging of bars

The new bar drag mode called DragSmartHorOrVer works similarly to the DragAutoHorOrVer mode. However, the user can now change the direction while dragging by simply moving the cursor in the other direction. Thus, for example, he can first select a new row for a bar and then a new time range, both in the same drag interaction. In contrast to free dragging (DragHor and DragVer flags both set), the bar is dragged as smoothly as on rails.

smart dragging of bars in the VSADT

 

Miscellaneous

There are a lot of other minor changes in this release such as the new setting

  • TableColumnSeparatorColor,
  • EntitiesTableColumnSeparatorColor,
  • FinishedAllocationBarsShownUnstackedInBackground.

Please read the chapter “Change Log” in the IDD for further details.

 

Visual Scheduling Add-in Developer Toolbox TEST NOW

 

Topics: Business Central Visual Scheduler Toolbox