﻿<?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 - can i add my logic after I click Delete button?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/can-i-add-my-logic-after-I-click-Delete-button/</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>can i add my logic after I click Delete button?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/can-i-add-my-logic-after-I-click-Delete-button/</link><pubDate>Tue, 11 May 2010 16:25:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to cancel delete method in OnBeforeDelete client side event, you can add “return false;” line on the specific condition that you wish the deletion to be canceled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The code snippet below shows that if the resource id of the selected event equals to “8”, then all delete operation over the events will be canceled on OnBeforeDelete client side event.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: courier new; color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: courier new; color: #a31515"&gt;script&lt;/span&gt;&lt;span style="font-family: courier new; color: red"&gt; language&lt;/span&gt;&lt;span style="font-family: courier new; color: blue"&gt;="javascript"&lt;/span&gt;&lt;span style="font-family: courier new; color: red"&gt; type&lt;/span&gt;&lt;span style="font-family: courier new; color: blue"&gt;="text/javascript"&amp;gt;&lt;/span&gt;
    &amp;lt;!--
    &lt;span style="font-family: courier new; color: blue"&gt;function&lt;/span&gt; ws1_OnBeforeDelete(controlId, evt) {
        &lt;span style="font-family: courier new; color: blue"&gt;var&lt;/span&gt; ws1 = ISGetObject(controlId);

        &lt;span style="font-family: courier new; color: #a31515"&gt;if&lt;/span&gt; (evt.ResourceID == &lt;span style="font-family: courier new; color: #a31515"&gt;"8"&lt;/span&gt;) {
            &lt;span style="font-family: courier new; color: blue"&gt;return false&lt;/span&gt;;
        }

        &lt;span style="font-family: courier new; color: blue"&gt;return true&lt;/span&gt;;
    }
    --&amp;gt;
&lt;span style="font-family: courier new; color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: courier new; color: #a31515"&gt;script&lt;/span&gt;&lt;span style="font-family: courier new; color: blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps. Please let us know if you have different scenario.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>can i add my logic after I click Delete button?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/can-i-add-my-logic-after-I-click-Delete-button/</link><pubDate>Mon, 10 May 2010 22:02:56 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;hi,yudi!&lt;/p&gt;
&lt;p&gt;I want to kown how to use &lt;span style="font-family: segoe ui; color: #1f497d"&gt;OnBeforeDelete event and i want to kown how to cancel delete methord in &lt;span style="font-family: segoe ui; color: #1f497d"&gt;OnBeforeDelete .&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>can i add my logic after I click Delete button?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/can-i-add-my-logic-after-I-click-Delete-button/</link><pubDate>Fri, 07 May 2010 13:29:54 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;WebScheduler has OnDelete (server side event); and both OnBeforeDelete and&amp;nbsp;OnAfterDelete (client side event) that will be invoked when user deletes event. You may add your own logic in those events if needed.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 0pt"&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt; mso-themecolor: text2"&gt;Please let me know your response.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>can i add my logic after I click Delete button?</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/can-i-add-my-logic-after-I-click-Delete-button/</link><pubDate>Thu, 06 May 2010 22:47:17 GMT</pubDate><dc:creator>gao3251999@sina.com</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;can i add my logic after I click Delete button? for example:&lt;/p&gt;
&lt;p&gt;system can judge if delete data base on my logic when i click Delete button.&lt;/p&gt;</description></item></channel></rss>