Page 1 of 1

[ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Fri Jun 09, 2023 8:41 pm
by portlink

Hey. I am trying to get dependencies shown on the scheduler. Only for the assignments with the same event.

I attached a screenshot of what I am trying to achieve. I do not need that line that is crossed out, as I have not yet attached it to another event.

Is this possible?


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Fri Jun 09, 2023 8:56 pm
by mats

So you want to show a line between assignments linked to the same event? That's not supported I'm afraid, our dependencies are between two events. In theory, anything can be done of course but it would require some custom work. If you're interested in having us develop this, please reach out to sales [at] bryntum and we can discuss details.


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Fri Jun 09, 2023 10:29 pm
by portlink

Thank you for the quick reply. I was also wondering if the overlapping event sorter worked with assignments as well? Seems like right now if I have an event and make it the top of the sort, both assignments will be at the top. There are some scenarios where I want one assignment to be the top and the other one to be at the bottom.


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Mon Jun 12, 2023 9:43 pm
by alex.l

Hi, what did you mean when you said "I want one assignment to be the top and the other one to be at the bottom"?
What element from displayed on a timeline you called assignment?


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Tue Jun 13, 2023 11:09 pm
by portlink

Following the picture I attached.

I would like the assignments for Madison to be ordered multi3 first then Multi 2,
but I would still like for Macy's assignments to be ordered Multi 2 and multi3.

Likewise for the assignments to George to be ordered Single assigned then Multi assigned, while keeping Celia's assignment the same.

Multi 2 and multi3 are multi assignments.


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Thu Jun 15, 2023 8:00 pm
by alex.l

Well, this should be some algorithm that will check all the parameters you want, it might be placed here https://bryntum.com/products/scheduler/docs/api/Scheduler/view/mixin/SchedulerEventRendering#config-overlappingEventSorter
We have a demo for this here https://bryntum.com/products/scheduler/examples/layouts/


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Tue Jun 20, 2023 1:14 am
by portlink

I was able to do it by getting the list of assignments from both eventModels and seeing which assignments from the two arrays have the same resources.

Is it possible to have the overlapping function have assignmentModel parameters as well?
Not needed anymore as you can compare both list of assignments, but just a suggestion.

Thanks for the help.


Re: [ANGULAR] Showing Dependencies on assignments with the same event.

Posted: Tue Jun 20, 2023 12:52 pm
by alex.l

Assignments are available in eventModel https://bryntum.com/products/scheduler/docs/api/Scheduler/model/EventModel#property-assignments , not sure it's required to be passed separately.

Glad to hear you reached your goal!