specifies the name of the dataStore which stores resource assignments
Available only in PRO Edition
var assignmentStore = gantt.getDatastore(gantt.config.resource_assignment_store);
This functionality is available in the PRO edition only.
The datastore is created automatically.
The datastore is only created when the process_resource_assignments config is enabled.
The datastore can be used to modify resource assignments from the code:
var assignmentStore = gantt.getDatastore(gantt.config.resource_assignment_store);
assignmentStore.addItem({
resource_id: 5,
task_id: 2,
value: 4
});
assignmentStore.removeItem(assignment.id);
assignmentStore.updateItem(assignment.id);
// after assignments are updated in the datastore, you need
// to call `updateTaskAssignments` to write changes to the task object:
gantt.updateTaskAssignments(taskId);
added in v7.1
Back to top