search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Undefined Variable

Asked by kiran
7 years ago.

Hi sir, Iam using javascript scheduler, after i create event when i click on event i can see event start date, end date also resource name in popup box but when i try to show more information like event details using json i got an error for undefined variable or typeerror, my json response is right but i when i try to show this object information i get an error. Iam sending you some screenshot please find it.

Answer posted by Dan Letecky [DayPilot]
7 years ago.

The original data object is available as DayPilot.Event.data property (see also https://api.daypilot.org/daypilot-event-data/). Most event handlers make DayPilot.Event object available as args.e, so you need to use args.e.data.yourproperty.

Note: I'm removing the Lite tag as your question is about the Pro version.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.