Our pure JavaScript Scheduler component


Post by a1swarya »

Hi,

I have a situation where I am reloading the events every 20 sec. I want to append 25 appointments to the eventstore after each reload. Fo eg: if I have 800 appointments in the beginning after every 20sec it should be 825,850 etc.. I am fetching 25 records every 20sec.I have attached the json response after the backend call in each reload. How can I append this response to the eventstore.

Attachments
json.txt
jsonresponse
(10.32 KiB) Downloaded 100 times

Post by mats »


Post by a1swarya »

Hi mats ,

I used store add but now all the resources are being added as undefined.


Post by Maxim Gorkovsky »

How do you add resources and events?


Post by a1swarya »

I fixed the issue with resources coming as undefined. Records are getting added now but it is replacing some of the existing events.

schedulerConfig.resourceStore.add(result.data.resources.rows)
schedulerConfig.eventStore.add(result.data.events.rows);

How can I add extra records without effecting existing records?


Post by mats »

If they replace it means your records are using same id's, please review your data.


Post by a1swarya »

Thanks for the help that was the issue :)


Post Reply