<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : HOWTO: Identify an Unsaved Event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : HOWTO: Identify an Unsaved Event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:01:23 +0000</pubDate>
  <lastBuildDate>Thu, 12 Oct 2006 04:30:35 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5274</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[HOWTO: Identify an Unsaved Event : Note that after user started typing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5274&amp;PID=16472&amp;title=howto-identify-an-unsaved-event#16472</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5274<br /><strong>Posted:</strong> 12 October 2006 at 4:30am<br /><br />Note that after user started typing something, he still can cancel creation of this new event by pressing Esc. <br><br>Answer for the first question is to handle BeforeEditOperation notification. There is a special operation type (OpParams.Operation = xtpCalendarEO_InPlaceCreateEvent) which is fired when user started typing.<br><br>Next event which you can handle is SelectionChanged, and it will contain a pointer to a newly created event (however, note that its subject will still be empty by the end of editing).<br><br>Your second question about automiatic saving of unsaved event have no answer. After in-place event creation a regular Subject editing is started. This operation do not save each keypress, a subject is changed only after editing is finished (whether by pressing Enter or by clicking outside).<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Thu, 12 Oct 2006 04:30:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5274&amp;PID=16472&amp;title=howto-identify-an-unsaved-event#16472</guid>
  </item> 
  <item>
   <title><![CDATA[HOWTO: Identify an Unsaved Event : EXAMPLE: Our app&amp;#039;s user opens...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5274&amp;PID=16463&amp;title=howto-identify-an-unsaved-event#16463</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=884">DDJJ</a><br /><strong>Subject:</strong> 5274<br /><strong>Posted:</strong> 11 October 2006 at 11:24pm<br /><br />EXAMPLE: Our app's user opens a form containing the calendar control, selects a time period on the calendar using a mouse, then starts typing a subject for the selected time period.<DIV>&nbsp;</DIV><DIV>At this point we want the user to be able to click on a Save button to save the details regarding the selected time period to our database.</DIV><DIV>&nbsp;</DIV><DIV>The problem is that at this particular point the calendar control has not saved an event.&nbsp; When we check for any events to save(CalendarControl1.DataProvider.GetAllEventsRaw.Count), we get 0.</DIV><DIV>&nbsp;</DIV><DIV>If the user hits "Enter" after typing whatever, we're OK because the event is saved.&nbsp; The same is true if the user moves off of the unsaved event and clicks somewhere alse on the calendar...the event is then automatically saved.</DIV><DIV>&nbsp;</DIV><DIV>Two questions.&nbsp; One, how can we test in this kind of situation to see if the user has started to create an event, but didn't complete the action.&nbsp; I was thinking along the lines of comparing the number of saved events (GetAllEventsRaw.Count) to the number of&nbsp;"selections" in the active view...but don't seem to be able to get where I want to get.</DIV><DIV>&nbsp;</DIV><DIV>Second (probably answered by the answer to the first question)...how would I just automatically save the unsaved event without prompting the user to do so.</DIV><DIV>&nbsp;</DIV><DIV>Please let me know if this doesn't make sense.</DIV><DIV>&nbsp;</DIV><DIV>Thanks,</DIV><DIV>&nbsp;</DIV><DIV>Dan</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 11 Oct 2006 23:24:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5274&amp;PID=16463&amp;title=howto-identify-an-unsaved-event#16463</guid>
  </item> 
 </channel>
</rss>