Our pure JavaScript Scheduler component


Post by mikemcs »

Sure thing:

Resources

{"success" : true,"data" : [{ "id" : 1, "name" : "X2", "calendar" : "X2", "dept" : "44"},{ "id" : 2, "name" : "X", "calendar" : "X", "dept" : "44"},{ "id" : 4, "name" : "X3", "calendar" : "X3", "dept" : "44"},{ "id" : 12, "name" : "M01", "calendar" : "M01", "dept" : "44"},{ "id" : 15, "name" : "865", "calendar" : "865", "dept" : "66"},{ "id" : 16, "name" : "FLEX-1", "calendar" : "FLEX-1", "dept" : "44"},{ "id" : 18, "name" : "M01-2", "calendar" : "M01-2", "dept" : "44"},{ "id" : 22, "name" : "940456", "calendar" : "940456", "dept" : "66"},{ "id" : 26, "name" : "940E18", "calendar" : "940E18", "dept" : "66"},{ "id" : 30, "name" : "940456 2", "calendar" : "940456 2", "dept" : "44"},{ "id" : 41, "name" : "881885", "calendar" : "881885", "dept" : "66"},{ "id" : 43, "name" : "X4", "calendar" : "X4", "dept" : "44"},{ "id" : 54, "name" : "X1", "calendar" : "X1", "dept" : "88"},{ "id" : 67, "name" : "DIAMOND", "calendar" : "DIAMOND", "dept" : "88"},{ "id" : 82, "name" : "441E15", "calendar" : "441E15", "dept" : "88"},{ "id" : 84, "name" : "PKG-1", "calendar" : "PKG-1", "dept" : "99"},{ "id" : 118, "name" : "PKG2", "calendar" : "PKG2", "dept" : "99"},{ "id" : 119, "name" : "PKG3", "calendar" : "PKG3", "dept" : "99"},{ "id" : 120, "name" : "PKG4", "calendar" : "PKG4", "dept" : "44"},{ "id" : 121, "name" : "PKG5", "calendar" : "PKG5", "dept" : "44"},{ "id" : 151, "name" : "881952", "calendar" : "881952", "dept" : "66"},{ "id" : 152, "name" : "991881", "calendar" : "991881", "dept" : "44"},{ "id" : 153, "name" : "AP14", "calendar" : "AP14", "dept" : "44"},{ "id" : 154, "name" : "UNIVERSAL CELL", "calendar" : "UNIVERSAL CELL", "dept" : "66"},{ "id" : 156, "name" : "EMG-MEP CELL", "calendar" : "EMG-MEP CELL", "dept" : "44"},{ "id" : 160, "name" : "GLASSINE", "calendar" : "GLASSINE", "dept" : "66"},{ "id" : 161, "name" : "CLEANROOM 7", "calendar" : "CLEANROOM 7", "dept" : "44"},{ "id" : 162, "name" : "CLEANROOM 12", "calendar" : "CLEANROOM 12", "dept" : "44"},{ "id" : 165, "name" : "940000", "calendar" : "940000", "dept" : "66"},{ "id" : 166, "name" : "55C", "calendar" : "55C", "dept" : "44"},{ "id" : 169, "name" : "AP13", "calendar" : "AP13", "dept" : "44"},{ "id" : 172, "name" : "940000 AUTO", "calendar" : "940000 AUTO", "dept" : "88"},{ "id" : 174, "name" : "LAPEL CLIP", "calendar" : "LAPEL CLIP", "dept" : "88"},{ "id" : 215, "name" : "AP58", "calendar" : "AP58", "dept" : "99"},{ "id" : 216, "name" : "AP33", "calendar" : "AP33", "dept" : "99"}]}

Events

{"success" : true,"data" : [{ "id" : 18, "dept" : "44", "partno" : "881806X62060001", "duration" : "9.00", "durationUnit" : "h", "startDate" : "2023-03-31 11:00:00", "endDate" : "2023-03-31 20:00:00" , "name" : "123456", "percentDone" : "72", "qty" : "500"},{ "id" : 19, "dept" : "44", "partno" : "881806X62060004", "duration" : "7.00", "durationUnit" : "h", "startDate" : "2023-03-31 14:00:00", "endDate" : "2023-03-31 21:00:00" , "name" : "45879", "percentDone" : "26", "qty" : "1000"},{ "id" : 20, "dept" : "44", "partno" : "881806X62060001", "duration" : "8.50", "durationUnit" : "h", "startDate" : "2023-03-31 20:00:00", "endDate" : "2023-04-01 04:30:00" , "name" : "12548", "percentDone" : "0", "qty" : "20750"},{ "id" : 21, "dept" : "66", "partno" : "881806X62039002", "duration" : "5.00", "durationUnit" : "h", "startDate" : "2023-03-30 12:00:00", "endDate" : "2023-03-30 17:00:00" , "name" : "65589", "percentDone" : "0", "qty" : "250"},{ "id" : 22, "dept" : "44", "partno" : "8818817x6203900", "duration" : "20.00", "durationUnit" : "h", "startDate" : "2023-04-01 04:30:00", "endDate" : "2023-04-02 00:30:00" , "name" : "58897", "percentDone" : "33", "qty" : "800"},{ "id" : 23, "dept" : "66", "partno" : "F154879", "duration" : "8.00", "durationUnit" : "h", "startDate" : "2023-03-28 17:00:00", "endDate" : "2023-03-29 01:00:00" , "name" : "58857", "percentDone" : "0", "qty" : "350"}]}

Assignments

{"success" : true,"data" : [{ "id" : 24, "eventId" : 22, "resourceId" : 1},{ "id" : 36, "eventId" : 18, "resourceId" : 1},{ "id" : 49, "eventId" : 20, "resourceId" : 1}]}

Calendars

{"success" : true,"data" : [{ "id" : "441E15", "name" : "441E15", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "55C", "name" : "55C", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "865", "name" : "865", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "881885", "name" : "881885", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "881952", "name" : "881952", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "940000", "name" : "940000", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "940000 AUTO", "name" : "940000 AUTO", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "940456", "name" : "940456", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "940456 2", "name" : "940456 2", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "940E18", "name" : "940E18", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "991881", "name" : "991881", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "AP13", "name" : "AP13", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "AP14", "name" : "AP14", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "AP33", "name" : "AP33", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "AP58", "name" : "AP58", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "CLEANROOM 12", "name" : "CLEANROOM 12", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "CLEANROOM 7", "name" : "CLEANROOM 7", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "DIAMOND", "name" : "DIAMOND", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "EMG-MEP CELL", "name" : "EMG-MEP CELL", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "FLEX-1", "name" : "FLEX-1", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "GLASSINE", "name" : "GLASSINE", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "LAPEL CLIP", "name" : "LAPEL CLIP", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "M01", "name" : "M01", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "M01-2", "name" : "M01-2", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "PKG-1", "name" : "PKG-1", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "PKG2", "name" : "PKG2", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "PKG3", "name" : "PKG3", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "PKG4", "name" : "PKG4", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "PKG5", "name" : "PKG5", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "UNIVERSAL CELL", "name" : "UNIVERSAL CELL", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "X", "name" : "X", "unspecifiedTimeIsWorking" : false, "intervals" : [{ "recurrentStartDate" : "on mon at 0:00", "recurrentEndDate" : "on sat at 0:00", "isWorking" : true},{ "startDate" : "2023-04-01T06:00", "endDate" : "2023-04-01T12:00", "isWorking" : true}] },{ "id" : "X1", "name" : "X1", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "X2", "name" : "X2", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "X3", "name" : "X3", "unspecifiedTimeIsWorking" : true, "intervals" : [] },{ "id" : "X4", "name" : "X4", "unspecifiedTimeIsWorking" : true, "intervals" : [] }]}

Post by mikemcs »

I have finally realized the issue:

I had this bit of code commented out:

            removeUnassignedEvent : false,

I have tried uncommenting this several times thinking it was my issue. Every time I did this it seemed not to fix my issue.

This time I uncommitted it and I emptied the browser's cache and Hard Reloaded the page and it worked.

This is one aspect of Javascript that kills me!

I was sure that every time I uncommented this I emptied the cache too but either I did not or I had other issues at the same time trying to debug.

It is possible when I tried to uncomment this in the past I had changed my Event store to include the resourceID instead of using an Assignment store. I then read this in the Documentation:

1.jpg
1.jpg (35.81 KiB) Viewed 79 times

This maybe why it didn't seem to work for me on some of the tries.

Thank you.


Post by tasnim »

Hi,

Great. Is your problem solved now? If it is we'll close this thread


Post by mikemcs »

Yes Thank you!


Post Reply