﻿<?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 - Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</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>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Fri, 20 Apr 2012 09:01:45 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hans,&lt;/p&gt;
&lt;p&gt;Thank you very very much. Your solution worked perfect!&lt;/p&gt;
&lt;p&gt;Frank Gary&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Thu, 19 Apr 2012 21:04:49 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You're welcome.&lt;br /&gt;Should you have further question, please do not hesitate to ask us again. &lt;br /&gt;I would be happy to help you again.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Hans.&lt;/p&gt;</description></item><item><title>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Thu, 19 Apr 2012 14:57:33 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hans,&lt;/p&gt;
&lt;p&gt;Thanks so much for providing this information, it is GREATLY appreciated!!!&lt;/p&gt;
&lt;p&gt;We will try the solution next week and post back the results.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;</description></item><item><title>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Thu, 19 Apr 2012 04:04:27 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for patiently waiting.&lt;br /&gt;I made a sample that maybe can resolve your problem. In my sample, I use WebScheduler_Personal.mdb database.&lt;br /&gt;Then I do a validation in OnBeforeEdit() client side event. And I use “WebScheduler1.EventViews” to get all event data in that day and the next day.&lt;br /&gt;Here’s the snippet script below:&lt;/p&gt;&lt;pre&gt;        function WebScheduler1_OnBeforeEdit(controlId, evt)
        {
            var WebScheduler1 = ISGetObject(controlId);
            
            // variable ResourceID of selected event
            var ResID = evt.ResourceID;
            // variable EventID of selected event
            var EventID = evt.EventID;
            // variable date of selected event
            var Date = evt.StartTime.getDate();
            // variable new StartTime of selected event
            var NewStartTime = evt.StartTime;
            // variable new EndTime of selected event
            var NewEndTime = evt.EndTime;

            var EditMode = 0;

            for (var i = 0; i &amp;lt; WebScheduler1.EventViews.length; i&amp;#43;&amp;#43;)
            {
                // variable another event date 
                var OtherDate = WebScheduler1.EventViews[i].StartTime.getDate();
                // if the other event have same date with the selected event
                if (Date == OtherDate)
                {
                    // if the another event is Recurring Event
                    if (WebScheduler1.EventViews[i].OriginalObject.EventID == -1)
                    {
                        var OtherEventID = WebScheduler1.EventViews[i].OriginalRecurringObject.EventID;
                        var OtherResID = WebScheduler1.EventViews[i].OriginalRecurringObject.ResourceID
                        var OtherStartTime = WebScheduler1.EventViews[i].OriginalRecurringObject.StartTime;
                        var OtherEndTime = WebScheduler1.EventViews[i].OriginalRecurringObject.EndTime;
                    }
                    // if the another event is not Recurring Event
                    else
                    {
                        var OtherEventID = WebScheduler1.EventViews[i].OriginalObject.EventID;
                        var OtherResID = WebScheduler1.EventViews[i].OriginalObject.ResourceID
                        var OtherStartTime = WebScheduler1.EventViews[i].OriginalObject.StartTime;
                        var OtherEndTime = WebScheduler1.EventViews[i].OriginalObject.EndTime;
                    }
                    // if don't have same EventID
                    if (OtherEventID != EventID)
                    {
                        // if have same ResourceID
                        if (OtherResID == ResID)
                        {
                            // if the event is overlapping with another event
                            if (NewStartTime.getTime() &amp;gt; OtherStartTime.getTime() &amp;amp;&amp;amp; NewStartTime.getTime() &amp;lt; OtherEndTime.getTime())
                            {
                                EditMode&amp;#43;&amp;#43;;
                            }
                            // if the event is overlapping with another event
                            else if (NewStartTime.getTime() == OtherStartTime.getTime())
                            {
                                EditMode&amp;#43;&amp;#43;;
                            }
                            // if the event is overlapping with another event
                            else if (NewStartTime.getTime() &amp;lt; OtherStartTime.getTime() &amp;amp;&amp;amp; NewEndTime.getTime() &amp;gt; OtherStartTime.getTime())
                            {
                                EditMode&amp;#43;&amp;#43;;
                            }
                        }
                    }
                }
            }
            // if doesn't overlapping with another event
            if (EditMode &amp;lt; 1)
            {
                return true;
            }
            // if overlapping with another event
            else
            {
                alert("This event overlapping with another event.!");
                return false;
            }
        }&lt;/pre&gt;

&lt;p&gt;I also attached my sample, in order to make you more easily understand about my sample.&lt;br /&gt;Hope this helps. Thank you.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Hans&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Thu, 19 Apr 2012 00:43:35 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Hi Hans,&lt;/p&gt;
&lt;p&gt;Thank you for the reply. Let me simplify my requirement. &lt;/p&gt;
&lt;p&gt;Is it possible to prevent "default" timeline view color bar moving or resizing without first performing a database record validation?&lt;/p&gt;
&lt;p&gt;In other words, is it possible through a client side event to perform any kind of database record validation prior to moving or resizing a color bar? For example:&lt;/p&gt;
&lt;p&gt;function X - (client side event)&lt;/p&gt;
&lt;p&gt;if myvalidation = true&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;allow move/resize&lt;/p&gt;
&lt;p&gt;if myvalidation = false&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;show error message and do not allow move or resize&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Please advise and best regards,&lt;/p&gt;
&lt;p&gt;Frank Gary&lt;/p&gt;</description></item><item><title>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Tue, 17 Apr 2012 08:00:00 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Hello,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I’m sorry for late response.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Unfortunately we still can’t validate overlapping timeline time when moving or resizing color bars.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Now we are discussing how to resolve this problem with developer division.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;I’m sorry for the inconvenience.  I’ll let you know if we can validate overlapping timeline time.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Thank you for understanding.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;p&gt;&lt;span style="font-family: calibri; font-size: 15px"&gt; &lt;/span&gt;&lt;/p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-size: 15px"&gt;&lt;span style="font-family: calibri"&gt;Hans.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>Prevent time overlaps in timeline view</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Prevent-time-overlaps-in-timeline-view/</link><pubDate>Fri, 13 Apr 2012 12:01:57 GMT</pubDate><dc:creator>frankgary</dc:creator><description>&lt;p&gt;Gentlemen,&lt;/p&gt;
&lt;p&gt;Can you please advise how to prevent timeline time overlaps when MOVING or RESIZING color bars? I am not sure where or how to implement this, I am assuming it is a client side event?&lt;/p&gt;
&lt;p&gt;Here is my scenario based on the attached document image:&lt;/p&gt;
&lt;p&gt;For example: If resource "1" has an existing appointment "A" scheduled from 1pm to 330pm, I cannot allow a user to move or resize ANOTHER existing appointment "B" that has a startdatetime or an enddatetime that "overlaps" the existing appointment "A" in Resource 1.&lt;/p&gt;
&lt;p&gt;In other words, if existing Resource "1" appointment "A" is from 1:00pm to 330pm, I cannot allow another existing appointment "B" to be MOVED or RESIZED into existing appointment "A" where appointment "B" startdatetime or enddatetime falls between 1:01pm to 3:29pm. I need a warning to the user that this is not allowed and stop the appointment "B" color bar from being moved or resized.&lt;/p&gt;
&lt;p&gt;Please see the attached document. Resource Eco 2 - Mav and Resource Eco 3 - Mav both have 2 appointments that start and end at the same time, this is ok. However, Resource Eco 1 - Mav has one appointment from 100pm to 330pm and another appointment from 130pm to 400pm, this is not ok as one appointment "overlaps" the other.&lt;/p&gt;
&lt;p&gt;I am able to control the user not being able to ADD an overlapped appointment through my custom editing form, I just do not know how to stop the user from moving or resizing an existing appointment into another existing appointment.&lt;/p&gt;
&lt;p&gt;You help would be greatly appreciated!&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>