﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - WebScheduler skip holiday</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-skip-holiday/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebScheduler skip holiday</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-skip-holiday/</link><pubDate>Thu, 10 Jun 2010 03:15:51 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;I have discussed this issue with the developer and unfortunately, we do not have a workaround for the TotalRecurrence issue. Using the workaround from the previous post the TotalRecurence will not account for the holidays and the total event displayed will be less than the TotalRecurrence pattern.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regarding holidays from external database, you will need to buffer the list in a HTML hidden input and match the holiday list with the event start time during the OnEventBound client side event handler. There is no workaround to hide the individual recuring event from the server.   &lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebScheduler skip holiday</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-skip-holiday/</link><pubDate>Wed, 09 Jun 2010 23:43:54 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><description>&lt;p&gt;&lt;span&gt;If we just hide the event as suggested,&amp;nbsp;&lt;/span&gt;&lt;span&gt;the schedule will not be correct.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Let say my TotalRecurrence = 10, &lt;/span&gt;&lt;span&gt;then 1 of the day fall on the holiday.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It's still scheduled, but it's hide during displayed, &lt;/span&gt;&lt;span&gt;so the schedule displayed will be 9 recurrence not 10, which is incorrect&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Another issue will be, &lt;span&gt;my users&amp;nbsp;are from different institution.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Let say i have 10 institution, then &lt;/span&gt;&lt;span&gt;my system will have 10 database, &lt;/span&gt;&lt;span&gt;so each institute will have their own holiday, &lt;/span&gt;&lt;span&gt;be it public holiday or institute holiday, &lt;/span&gt;&lt;span&gt;so i cannot insert the holiday at application level.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Let say 5 institue login at the same time, &lt;/span&gt;&lt;span&gt;then system will bind all holidays from 5 institute to the same application, &lt;/span&gt;&lt;span&gt;then 5 institue will c the same holiday, which is incorrect&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pls advise!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>WebScheduler skip holiday</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-skip-holiday/</link><pubDate>Wed, 09 Jun 2010 01:02:16 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Unfrotunately such scenario has not been supported by WebScheduler. &lt;/p&gt;&lt;p&gt;However, after discussing this issue with the developer, a workaround would be to hide the event which shown in the holiday date. This could be achieved using OnEventBound client side event handler by comparing the event date and holidays, if it match set the css style of the event so the event will be hidden. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function WebScheduler1_OnEventBound(controlId, evt)&lt;br /&gt;{&lt;br /&gt;    var sched = ISGetObject(controlId);&lt;br /&gt;&lt;br /&gt;    var evtDay = [evt.StartTime.getDate(), evt.StartTime.getDay(), evt.StartTime.getFullYear()].join("/");&lt;br /&gt;&lt;br /&gt;    for (var i = 0; i &amp;lt; sched.Holidays.length; i&amp;#43;&amp;#43;)&lt;br /&gt;    {&lt;br /&gt;        var hDate = sched.Holidays[i].Date;&lt;br /&gt;        var hDateStr = [hDate.getDate(), hDate.getDay(), hDate.getFullYear()].join("/");&lt;br /&gt;        if (evtDay == hDateStr)&lt;br /&gt;        {&lt;br /&gt;            evt.Element.style.display = "none";&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebScheduler skip holiday</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/WebScheduler-skip-holiday/</link><pubDate>Tue, 08 Jun 2010 23:00:08 GMT</pubDate><dc:creator>wayhang@elutions.com.my</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My application allow user to key in holiday, so have a table to store the holiday records.&lt;/p&gt;
&lt;p&gt;Then the system will insert records into ttRecurringEvent and ttRecurrenceInfo table for scheduling. When inserting records, system will check agains the Holiday table, when the recurrence activity fall on the holiday, i would like to make an exception and skip that day, eg:&lt;/p&gt;
&lt;p&gt;Recurring event: 1/1/2010 - 30/9/2010&lt;/p&gt;
&lt;p&gt;Recurring Day: Every Tuesday&lt;/p&gt;
&lt;p&gt;Holiday entered by user: 31/8/2010 which is Tuesday&lt;/p&gt;
&lt;p&gt;So i need the activity to be scheduled on every Tuesday from 1/1/2010 - 30/9/2010 except on 31/8/2010 which is holiday. &lt;/p&gt;
&lt;p&gt;I understood that in WebScheduler we can do exception by putting it as exception and arrange the schedule on another date. &lt;/p&gt;
&lt;p&gt;But in my case, i don't need to have exception on another date, instead i need exception to skip that date.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Pls advise!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>