Hello all,
i am new to your library and i would need some help please.
I am trying to build something similar to this : https://bryntum.com/products/schedulerpro/examples/frameworks/react-vite/drag-unplanned-tasks/dist/
- As resources i have drivers
- As appointment i have transportation services
- On the grid at the right i will have Unassigned services ( which have have 2 types, already booked services and new requests that the user can accept/decline)
To start with i would like you to show me.
- How can i categorize at the grid (like Tasks for doctor, tasks for nurse) in my case > Unassigned Booked Services & unassigned Pending requests. On the scheduler i am using websocket connection to fetch data from server ( if you face a problem with the connection, is due to ngrok you have to click on the url presented at the console log, and accept to continue and have access).
The data we fetch from the server on initialisation are the following
a) data.drivers
b) data.transferRequests
c) data.transferDetails
I know that i have to use groupFeature on gridConfig to achieve that. > So what i need is.
a)
data.transferDetails.forEach(transfer => {
if (transfer.driver) {
When a transfer has a driver > to add it on the scheduler
} else if (transfer.operator) {
we will fix it at a later stage
} else {
When a transfer has neither to be added on the grid and create an attribute like :
requiredRole=Transfer
}
})
b) At the grid we have to add data.transferRequests. > and we have also to create an attribute requiredRole=Request
I tried to create different lists and use those lists at the scheduler but all failed. Can you please help me to get started ?
I am attaching you the project > click login > then go to New Scheduler tab. > I have created some data for you to work but if there are non > please send me an email i will immediately add some.
Also i am attaching a video with the data you suppose to fetch from the servers ( if the lists are empty is does to date time contrains)
Thanks and i am waiting your reply.