resource_assignment_store
info
This functionality is available in the PRO edition only.
Description
Specifies the name of the dataStore which stores resource assignments
resource_assignment_store: string
Example
var assignmentStore = gantt.getDatastore(gantt.config.resource_assignment_store);
Default value: "resourceAssignments"
Related samples
Details
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);
Related API
Related Guides
Change log
- added in v7.1