[FullCalendar 2] Populating Events into the calendar

[FullCalendar 2] Populating Events into the calendar

  
Forge Component
(8)
Published on 23 Mar by Grazina
8 votes
Published on 23 Mar by Grazina
HI, 

I am new to Outsystems and I am having trouble figuring out how to populate the calendar with my data. I contacted Outsystems for support, but they sent me here. Can you help me?

Thank you.
Hi Nicholas,

So you can start by analysing the Sample eSpace that comes bundled with the Application when you first install it.
There are several types of data feed, I'll highlight 2, one for small set of events, another for a big dynamic set of events.
  1. Under CalendarBackground page the sample is using a JSON approach which is data set directly on the initialization script of the calendar. The approach here is to build up a list using ListAppend into a an Events List attribute, and then serialize it using OutSystems2JSON (from ArdoJSON)
  2. Under CalendarClean you have a more sophisticated approach where events are rendered assynchronously using REST calls. In this instance, please note the EventsRESTUrl parameter of the calendar on that page and the REST endpoint defined in the Logic tab which you can use as a starting point.
Let me know if this helps and how you're progressing.

Kind Regards,
João Grazina