Our pure JavaScript Scheduler component


Post by cocovan »

Hi there - is there a way to use the resource histogram and also have resources allocated to tasks at various percentages. E.g. I want to assign a resource to multiple tasks in the one day, say two tasks at 50% each and only have the historgram show over allocation when the total percentage is greater than 100%?

Many thanks.


Post by arcady »

Well that's already supported on the data level. If you check this method for example: https://www.bryntum.com/docs/scheduler-pro/#SchedulerPro/model/EventModel#function-assign

Or you can adjust existing assignments ..try executing this code in console when the demo opened and you'll notice Celia row gets changed:

// change resource allocation % of the 1st assignment record
scheduler.project.assignmentStore.first.units = 50

Yet that field is not supported on the UI level yet. I've made a ticket for that: https://github.com/bryntum/support/issues/1181


Post by cocovan »

@arcady - thanks for the fast response. I'll keep an eye on the GitHub ticket and fingers cross for the next release as this would totally fill our resource management needs.


Post by cocovan »

Just thinking - are there any existing UI components that allow % allocation editing? If so, I could combine that with the histogram and maybe achieve what I'm looking for.


Post by arcady »

UI for editing of that field exists in the task editor. It has Resources tab (https://bryntum.com/docs/scheduler-pro/#SchedulerPro/widget/taskeditor/ResourcesTab) allowing to edit assignments including their units field.
But that tab is hidden in Scheduler Pro version of the task editor (it's mostly used in the gantt) so it might take some tweaking to make it work, but doable for sure. :)


Post by cocovan »

Yeah - it since that tab isn't available in Scheduler Pro, I can't seem to get it to appear. It's in the base class (https://bryntum.com/docs/scheduler-pro/#SchedulerPro/widget/TaskEditorBase) but it's abstract, and I'm assuming not implemented in the Scheduler Pro implementation. Frustrating, as I feel I'm close to what we want but just can't quite get there.


Post Reply