iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi all,
I'm in client side, how I can get all events scheduled for a given date?
Thanks in advance,
Daniele
Such function is not yet currently available in the WebScheduler. However, you could iterate the EventViews and AllDayEventViews property and check the start time and end time of each event to determine the event for a given date. This given date must be displayed in the WebScheduler view.
Here is the snippet:
function GetEvents(){ var sched = ISGetObject("WebScheduler1"); var selDateEvent = new Array(); //Set date to 27 Feb 2008 var selDate = new Date(2008, 1, 27, 0, 0, 0, 0); var selDateTicks = selDate.getTime(); var startTick = 0; var endTick = 0; var startDate = ""; var endDate = ""; var eventColl = [sched.EventViews, sched.AllDayEventViews]; for (var i = 0; i < eventColl.length; i++) { for (var j = 0; j < eventColl[i].length; j++) { var evt = eventColl[i][j]; startDate = evt.GetStartTime(); endDate = evt.GetEndTime(); startDate = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate(), 0, 0, 0, 0); endDate = new Date(endDate.getFullYear(), endDate.getMonth(), endDate.getDate(), 23, 59, 59, 999); startTick = startDate.getTime(); endTick = endDate.getTime(); var diffStart = selDateTicks - startTick; var diffEnd = endTick - selDateTicks; if (diffStart >= 0 && diffEnd > 0) selDateEvent.push(evt); } } //Process the selDateEvent array}
Hi Glen,
thank you.
Vince.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname