Multi-User with custom data provider |
Post Reply |
Author | ||||
skiman
Groupie Joined: 20 December 2008 Location: Belgium Status: Offline Points: 88 |
Post Options
Thanks(0)
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
|
||||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|||
Why not just use a timer control to update?
|
||||
skiman
Groupie Joined: 20 December 2008 Location: Belgium Status: Offline Points: 88 |
Post Options
Thanks(0)
|
|||
Yes, so obvious. I have it working with automatic updating on all the stations on the network. :-) Regards,
Chris.
|
||||
ABO Service
|
||||
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
|||
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 |
||||
Auge_Ohr
Groupie Joined: 20 December 2008 Status: Offline Points: 65 |
Post Options
Thanks(0)
|
|||
hi,
WHO shoud fire a Event ?
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 !
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.
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 |
||||
mhuratdo
Newbie Joined: 03 May 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
|||
Hi Can I ask you how are you updating the Calendar? I'm using a .Populate() and a .RedrawControl() with no result at all... |
||||
skiman
Groupie Joined: 20 December 2008 Location: Belgium Status: Offline Points: 88 |
Post Options
Thanks(0)
|
|||
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
|
||||
mhuratdo
Newbie Joined: 03 May 2009 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
|||
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! |
||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |