I’m implementing multiple resources capabilities, and using the lightbox resources control that comes with it. But that seems to re-init the owner_id object on the task (with the resource ids and values) on a lightbox save. I store other things in that object (like a date and a unique code for the back-end system), that seems to disappear after the lightbox save.
Could you check what’s happening, and if there’s a solution for keeping that object intact and only changing values? Thank you.
Hello Maurice,
Unfortunately, there is no easy solution.
The current resource control completely replaces resource assignment objects on saving.
So you’ll have to do the mapping between resource assignment objects in gantt and in your store manually somehow.
Alright. I’m creating a DHTMLXGrid for this now. Can you help me get started on how to get the resource assignment objects (like the standard resources control does)?
And I have one more snippet that is similar to the previous sample: https://snippet.dhtmlx.com/2100a2feb
It has a function that checks all resources and finds if they have any tasks. The resources without tasks move to “no_tasks” category.