Print Page | Close Window

Multi User Environment

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=7513
Printed Date: 23 November 2024 at 8:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi User Environment
Posted By: Boris
Subject: Multi User Environment
Date Posted: 03 July 2007 at 9:12am

I am trying to get your calendar demo to work with multiple users. When two copies of the app are running changes made in one do not appear in the other. To overcome this I added a timer which detects changes in the highest created date and modified date. If these don't match a variable then a routine attempts to capture the changes. I do a CalendarControl.DataProvider.ClearCache
CalendarControl.DataProvider.RetrieveDayEvents Format(rst.Fields(2), "dd/mm/yyyy") and this works fine.

However, although the Datepicker is attached to the calendar new or moved events do not show in the Datepicker.
I tried DatePicker.RedrawControl to no effect. I found that if I did DatePicker.DetachFromCalendar and then DoEvents
DatePicker.AttachToCalendar Me.CalendarControl it worked.

Before I continue coding..Is there a better way?



-------------
Boris

Product: Xtreme SuitePro (ActiveX) version 16.4.0 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6

VS 2005-2008-2010-2013



Replies:
Posted By: sserge
Date Posted: 04 July 2007 at 4:15pm
No, this is fine enough. Any other way could just repeat the same operation -- reloading events on re-attaching.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net