GlideTimeline - registerEvent(String strServerEvent, String strScriptIncludeName)

Registers the specified Timeline server event. The strServerEvent must be one of the allowed events for registration to work correctly. When the event occurs, the GlideTimeline sends a request to the server and processes the event as handled inside the strScriptIncludeName class.

The strServerEvent must be one of the allowed events for registration to work correctly. When the event occurs, the GlideTimeline sends a request to the server and processes the event as handled inside the strScriptIncludeName class.

Table 1. Parameters
Name Type Description
strServerEvent String Specifies one of the following case-sensitive events:
  • getItems
  • elementMoveX
  • elementMoveY
  • elementMoveXY
  • elementSuccessor
  • elementTimeAdjustStart
  • elementTimeAdjustEnd
  • inputBox
  • itemMove
strScriptIncludeName String Specifies the name of the class to receive the strServerEvent. This class must be defined in a script include that extends AbstractTimelineSchedulePage.
Table 2. Returns
TypeDescription
void

glideTimeline.registerEvent("getItems", "TimelineGanttSchedulePage");