search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Switch resource type for events

Asked by Anonymous
11 months ago.

I want to use the scheduler for creating events that link to workers and projects. I want the user to be able to switch between worker view and project view, is there any docs/tutorials that show a good way to do this? Should i be creating 2 schedulers and show/hiding?

Answer posted by Dan Letecky [DayPilot]
11 months ago.

Yes, the best way would probably be to use two scheduler instances and switch between them. You might be able to do it with one instance but the configuration would be more complex.

You can also take a look at this tutorial which links events to locations and people. It uses a hybrid view where you can display full details of a single location and all related people:

React version that adds links between the main event and the assignment:
https://code.daypilot.org/40087/react-shift-scheduling-application-php-mysql-backend

JavaScript version without links:
https://code.daypilot.org/61166/php-shift-planning-javascript-html5-mysql-database

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.