Then i want create second scheduler where this units will be in Timeline view.
And there i want to set the range of working days for whis doctors.
For Example: I change workdays range for Doctor#1 to 11 may-11june.
Then when i go to scheduler#1 in units will be show only Doctor#1,because for Doctor#2 and #3 range workdays dont’t set.
I mean I need to somehow transfer the date range to the database from the sheduler №2 and then compare and search for the current date from the sheduler №1 in this range… Is that possible?
And you can make scheduler to reload the data each time you switch to the different date docs.dhtmlx.com/scheduler/api__ … dmode.html
The dynamic loading will cache previously loaded ranges, which you don’t need. You can bypass it by clearing scheduler manually on each date change:
After this step, the units view will request a backend each time it’s switched to a different date and will send a displayed date with the request parameters.
Then, on a backend, you’ll be able to select which sections (doctors) you want to display for a requested date - those who have records in workdays table in the requested days, e.g. list of doctors -> select workerId, workerName from workday where start_date < dateTo and end_date > dateFrom.
And this should be pretty much it.
I can find you a demo with loading sections for timeline/units for different dates, although I only have asp.net mvc demo at ready.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan