You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Summary

The RestScheduleImportToReference creates SpecialEvents in a schedule by reading from an API. It will create only the current or future events in the schedule.
This component is very similar to the RestScheduleImportExt, but you can select to import your special events to any schedule in the station (and not only the parent schedule).
Another difference is how existing special events are treated on an import:

  • existing special events which do not come from this component are ignored.
  • existing special events previously imported by this component which don't exist anymore on the server will be deleted.
  • existing special events previously imported by this component which still exist will be overridden.


Implementation

  • Drag and drop a RestScheduleImportToReference from the palette 
  • Configure its properties


 Properties

  • HttpConfig : To configure the Http (Get) request to get data about SpecialEvents. See Http Config
  • ScheduleId: If used with the discover of RestScheduleDeviceExt, will contain the id to identify the schedule. Will be empty otherwise
  • EventSelector: To select the part of the json that represents an event. It can be an array or an object. This is a JSON Key Selector based on the Http response
  • EventNameSelector: To select the name of the event to create. It should be a String. This is a JSON Key Selector based on the json part selected by the EventSelector
  • StartDateSelector: To select the start date of the event. It should be a String encoded. The encoding format has to be precised in DateFormat. This is a JSON Key Selector based on the json part selected by the EventSelector
  • EndDateSelector: To select the end date of the event. Works the same way than StartDateSelector.
  • DateFormat: To define the encoding used for start and end dates. Will be used to convert them in AbsTimes.
  • DateTimeZone: To define the timezone given by the API (usually UTC)
  • TagsSelector: To define which tags to create for each booking based on the returned JSON. It's useful when we want to display the attendees for example.
  • ScheduleOrd: The schedule in which the special events will be imported


Actions

  • Execute: To execute the import of SpecialEvents.