Hey!
I have a question about units for "resourceassignment" column.
On excel exporting for "resourceassignment" I am getting string like:
"Developer 100%,Product Manager 100%,Scrum Master 100%,Tester 100%,Tester 100%"
The goal is to get string without units at all on exporting to excel. Like:
"Developer,Product Manager,Scrum Master,Tester,Tester"
I was trying to set units for every resource like 0 / null / undefined, but still getting "0% / 0% / 0%"
I tried to set in column config units.hidden = true, but it's also not what I want.
Can you please suggest how can I achieve that?
Thanks and best regards!
Support Forum
Easiest way would be to use your own AssignmentModel and overwrite the default toString method: https://bryntum.com/products/scheduler/docs/api/Scheduler/model/mixin/AssignmentModelMixin#function-toString
/**
* Returns a textual representation of this assignment (e.g. Mike 50%).
* @returns {String}
*/
toString() {
if (this.resourceName) {
return `${this.resourceName} ${Math.round(this.units)}%`;
}
return '';
}