Our pure JavaScript Scheduler component


Post by melazhadi »

hello,
after i added an event model
class MyEvent extends EventModel {

	static get fields() {
		return [{
				name: "startDate",
				dataSource: "ddeb"
			},
			{
				name: "endDate",
				dataSource: "dfin"
			},
			{
				name: "resourceId",
				dataSource: "mmat"
			},
			{
				name: "type",
				dataSource: "mmotif"
			},
		];
	}
};
i received this error please help me
scheduler.module.js?8ef5:9 Uncaught TypeError: _0x5b7cf5[_0x2009(...)] is not a function
    at Function.diff (scheduler.module.js?8ef5:9)
    at _0x39e37d.value (scheduler.module.js?8ef5:9)
    at _0x39e37d.value (scheduler.module.js?8ef5:9)
    at _0x39e37d.Base (scheduler.module.js?8ef5:9)
    at _0x39e37d.ModelStm (scheduler.module.js?8ef5:9)
    at _0x39e37d.Model (scheduler.module.js?8ef5:9)
    at _0x39e37d.TimeSpan (scheduler.module.js?8ef5:9)
    at _0x39e37d.EventModel (scheduler.module.js?8ef5:9)
    at _0x39e37d.MyEvent (schedulerConfig.js?054d:46)
    at new _0x39e37d (scheduler.module.js?8ef5:9)
thanks

Post by mats »

Need to let us know that it's a type 'date' too.
class MyEvent extends EventModel {

	static get fields() {
		return [{
				name: "startDate",
				dataSource: "ddeb",
				type : 'date'
			},
			{
				name: "endDate",
				dataSource: "dfin",
				type : 'date'
			},
			{
				name: "resourceId",
				dataSource: "mmat"
			},
			{
				name: "type",
				dataSource: "mmotif"
			},
		];
	}
};

Post by melazhadi »

thanks

Post Reply