Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Calendar Control Using Sybase
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Calendar Control Using Sybase

 Post Reply Post Reply
Author
Message
karthiksp View Drop Down
Groupie
Groupie


Joined: 09 May 2007
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote karthiksp Quote  Post ReplyReply Direct Link To This Post Topic: Calendar Control Using Sybase
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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

--
WBR,
Serge
Back to Top
karthiksp View Drop Down
Groupie
Groupie


Joined: 09 May 2007
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote karthiksp Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.328 seconds.