Print Page | Close Window

Calendar Control Using Sybase

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=7117
Printed Date: 26 November 2024 at 9:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Calendar Control Using Sybase
Posted By: karthiksp
Subject: Calendar Control Using Sybase
Date 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



Replies:
Posted By: sserge
Date Posted: 13 May 2007 at 2:36pm
Hope this article give you an answer: http://www.codejock.com/support/articles/com/calendar/cp_3.asp - http://www.codejock.com/support/articles/com/calendar/cp_3.asp

--
WBR,
Serge


Posted By: karthiksp
Date Posted: 14 May 2007 at 7:44am

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
Karthik



Posted By: sserge
Date Posted: 14 May 2007 at 6:00pm
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



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