Print Page | Close Window

Multi-User with custom data provider

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=13570
Printed Date: 07 July 2025 at 7:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi-User with custom data provider
Posted By: skiman
Subject: Multi-User with custom data provider
Date Posted: 04 March 2009 at 3:02am
Hi,
 
We have the calendar working pretty well with Xbase++. Next step is to prepare it to use in a multi-user environment.
 
I was looking for an event that is fired with a fixed interval. However I didn't find anything.
 
This is what I thought : If there is an event which can be fired every xx seconds, I could use that event to see if there is a change in my database, and eventually update my calendar.
 
If there is no such event, I'm wondering how I can update the calendar on a workstation. I can check this in DoCreateEvent, DoUpdateEvent, DoDeleteEvent, ... but these are only fired when the user is doing something. I would prefer that I can update the calendar, even when the user just opened the calendar on his screen.
 
Is there any way to accomplish this? I suppose that everyone with a custom data provider could use this?
 
Regards,
Chris Andries
 
 


-------------
ABO Service



Replies:
Posted By: SuperMario
Date Posted: 04 March 2009 at 8:30am
Why not just use a timer control to update?


Posted By: skiman
Date Posted: 05 March 2009 at 5:48am

Yes, so obvious.

I have it working with automatic updating on all the stations on the network. :-)

 
Regards,
Chris.


-------------
ABO Service


Posted By: mdoubson
Date Posted: 06 March 2009 at 9:27pm

If you use modern db you can use db triggers on record update and do smth on your site without timer-based most-case senseless loop



-------------
Mark Doubson, Ph.D.


Posted By: Auge_Ohr
Date Posted: 07 March 2009 at 4:01am
hi,
Originally posted by skiman skiman wrote:


I was looking for an event that is fired with a fixed interval. However I didn't find anything.

WHO shoud fire a Event ?
Originally posted by skiman skiman wrote:

This is what I thought : If there is an event which can be fired every xx seconds, I could use that event to see if there is a change in my database, and eventually update my calendar.

That is a Database Problem, not a Calender Problem.

your Database have to send a Event to "tell" Workstation to update there Calender (Display)

Think about a Browse from your Database. It will not "refresh" (Display) automatic !

Originally posted by skiman skiman wrote:

If there is no such event, I'm wondering how I can update the calendar on a workstation. I can check this in DoCreateEvent, DoUpdateEvent, DoDeleteEvent, ... but these are only fired when the user is doing something. I would prefer that I can update the calendar, even when the user just opened the calendar on his screen.


AFAIK, when a Workstation is doing "something" it will be "written" into your Database.

now it is your Parts "From Database" to ::notify() it and "inform" Client Application

in Client Application you can use Dataprovider:ChangeEvent Method so EventChangedEx() is fired.

Originally posted by skiman skiman wrote:

Is there any way to accomplish this? I suppose that everyone with a custom data provider could use this?

It seem your Logic for DoXXXX does not match you Database so you have to enhance Xbase++
Database Logic to send "::notify()" to itīs Client Application.


-------------
greetings by OHR
Jimmy


Posted By: mhuratdo
Date Posted: 20 May 2009 at 8:24pm
Originally posted by skiman skiman wrote:

Yes, so obvious.


I have it working with automatic updating on all the stations on the network. :-)


 

Regards,

Chris.


Hi
Can I ask you how are you updating the Calendar? I'm using a .Populate() and a .RedrawControl() with no result at all...




Posted By: skiman
Date Posted: 21 May 2009 at 10:17am
Hello,
 
I'm checking my database with a timer, and I'm using addevent and updateevent to add new events, or modify existing events.
 
In my database I have a timekey, so I can check which events are new or modified since I cheched it last time. My timer checks every 20 seconds.
 
I suppose the populate will only work with SQL or MDB database!
 
Regards,
Chris


-------------
ABO Service


Posted By: mhuratdo
Date Posted: 21 May 2009 at 10:24am
uh, ok. this would work..
I was trying to update the whole current day (and other days when the user changed views) but I had problems with the Recurrence Items.

Thanks for your comment!




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