resource_assignment_store

specifies the name of the dataStore which stores resource assignments

string resource_assignment_store;

Available only in PRO Edition

Example

var assignmentStore = gantt.getDatastore(gantt.config.resource_assignment_store);


Default value:

"resourceAssignments"

Related samples

Details

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);
See also
Change log

added in v7.1

Back to top