Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »

Minimal configuration

Gantt context

First, we need to create a context object for the Gantt widget. Below are the minimum attributes required in most situations.

When creating a context entity TaskId, ResourceId, TaskParentId, TaskName, SyncRequest and SyncResponse are required.

Getting tasks

Once you have placed the Gantt widget inside a page with the context you can start customizing the widget.

Firstly you must configure a data source to retrieve the tasks that you want to show in the widget. You can define some actions when a item is double clicked, and configure settings whether or not the items are deletable, moveable, resizable.

Configuring the mapping

Configuring the mapping is where the business entity comes into play. Notice there is task name and the context for that attribute. The task name is in this example the data source you defined in the tasks tab, the context is the underlying dataview context entity.

Good to note is the task phantom id is relevant for creating new tasks. The widget will assign a temporary id which will be used to assign an actual id from the server. So we can match the client and server side.

Constraint date and constraint type can be configured. By default each task will start as soon as the project start, setting a constraint date and type can alter this behaviour (check out ENUM_TaskConstraintType for the types)

Dependencies

This is needed to create dependencies between the tasks, so you can view the Gantt widget. Associations in dependencies and assignments are purely for Mendix and not needed for widget.

Synchronisation

Lastly to configure is synchronisation within the Gantt tab. Request and response are both strings in JSON format, make sure you set the access rights to read-write. These contain the response from the server which can be mapped in the synchronisation microflow.

First thing you need to do is call the BizzomateGantt.JAVA_Request_Import action and configure it accordingly with the SyncRequest attribute. Use the returned object to retrieve TaskCrudList, DependencyCrudList and AssignmentCrudList. For each list you need to process the CRUD-data back to business data (example shown below).

License

To try out the Gantt widget locally on your pc or even in a Mendix sandbox environment doesn’t require a license. However, a production build will.

It is also not required to have a license when the app is in production and the Gantt widget is not used on any pages.

  • No labels