Hi Guys,
I am having issues to save an appointment in the ejschedule.
References:
<meta name="viewport" charset="utf-8" content="width=device-width, initial-scale=1.0" />
<link rel='nofollow' href="content/bootstrap.min.css" rel="stylesheet" />
<link rel='nofollow' href="content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
<link rel='nofollow' href="content/default.css" rel="stylesheet" />
<link rel='nofollow' href="content/default-responsive.css" rel="stylesheet" />
<link rel='nofollow' href="content/ejthemes/responsive-css/ej.responsive.css" rel="stylesheet" />
<link rel='nofollow' href="content/ejthemes/responsive-css/ejgrid.responsive.css" rel="stylesheet" />
<!-- Fix jQuery Reference -->
<script>if (typeof module === 'object') { window.module = module; module = undefined; }</script>
<!--[if lt IE 9]>
<script type="text/javascript" src="../scripts/jquery-1.11.3.min.js" ></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="scripts/jquery-3.1.1.min.js"></script>
<script src="scripts/jquery.easing.1.3.js"></script>
<!--<![endif]-->
<script src="scripts/jsrender.min.js"></script>
<script src="scripts/ej.web.all.min.js" type="text/javascript"></script>
<script src="scripts/properties.js" type="text/javascript"></script>
<script src="scripts/jsondata.min.js"></script>
<script src="scripts/jsonscheduledata.js" type="text/javascript"></script>
<script src="scripts/jsonkanbandata.js"></script>
<!-- Fix jQuery Reference -->
<script>if (window.module) module = window.module;</script>
Code:
var scheduleObj = $("#schedule").data("ejSchedule");
var StartDate = new Date(cur_StartTime);
var StartTime = new Date(cur_StartTime);
var EndTime = cur_EndTime;
var obj = {
Id: 108,
Subject: "Talk with Nature",
StartTime: StartTime,
EndTime: EndTime,
AllDay: $(e.target).hasClass("e-alldaycells") ? true : false,
Recurrence: false,
RecurrenceRule: null,
StartTimeZone: "UTC +00:00",
EndTimeZone: "UTC +00:00",
Promise: 1
};
// Appointment object saving to the schedule control
scheduleObj.saveAppointment(obj);
Error:
ej.web.all.min.js:10 Uncaught TypeError: Cannot read property 'promise' of nullsaveAppointment @ ej.web.all.min.js:10scheduleDrop @ index.html:257rowDrop @ index.html:146_trigger @ ej.web.all.min.js:10dragStop @ ej.web.all.min.js:10_trigger @ ej.web.all.min.js:10_dragStop @ ej.web.all.min.js:10e @ jquery-3.1.1.min.js:2dispatch @ jquery-3.1.1.min.js:3q.handle @ jquery-3.1.1.min.js:3