Calendar Control Using Sybase |
Post Reply |
Author | |
karthiksp
Groupie Joined: 09 May 2007 Location: United States Status: Offline Points: 30 |
Post Options
Thanks(0)
Posted: 13 May 2007 at 1:05am |
Hi,
We are in the process of evaluvating the calendar control product and we are really close in finishing the testing. We tested XML as our DATA provider and it works great.
Now we are trying to use our Sybase Database to talk with a table. My question is after I set the statement SETDATAPROVIDER nothing happens in the populating the events by calling the function populate.
Does developer need to populate all the events manuall in calendarevent in order to show it to the calendar control.
What I thought is, If we use custom DSN only create, delete and other stuff need to do programatically by developer. Is populating the events in each cell in calendar control need to done by developer.
If yes for the above question, which event do i need to use to populate the events in each cell.
Please help me in regards this
Karthik
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hope this article give you an answer: http://www.codejock.com/support/articles/com/calendar/cp_3.asp
-- WBR, Serge |
|
karthiksp
Groupie Joined: 09 May 2007 Location: United States Status: Offline Points: 30 |
Post Options
Thanks(0)
|
Hi Serge, Thanks for the reply. That article was really great in understanding the concepts. Here is my scenario to check with is it right approach to do it. Since custom dataprovider is not using in populate and any event, Why do I need to set the SetDataProvider in the Open Event. Why Can't I do like below. In Prepopulate event I load all the events manually using CreateEventX method and I call the populate method in the open event of the window. When user create / edit / delete an event I update the information in the database as how we update the database. Tell me, will it work If I follow the above steps. Thanks in advance |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
This will work, but in this case there are no need to use PrePopulate event. It is useful when you'd like to correct some Events data, but do not want to modify a data storage.
Your scenario will work with the default Memory data provider, filled with items on form load; and update your database on handling create / edit / delete events... -- WBR, Serge |
|
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 |