Print Page | Close Window

Custom Provider Problem

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=5147
Printed Date: 22 November 2024 at 4:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom Provider Problem
Posted By: nvierros
Subject: Custom Provider Problem
Date Posted: 26 September 2006 at 2:01am
Hey,
 
When i use the following code, nothing seems to happen.
 
nCal.SetDataProvider "Provider=sqloledb;Server=xfs1;Database=db;User ID=sa;Password="
nCal.DataProvider.CacheMode = xtpCalendarDPCacheModeOnRepeat
nCal.DataProvider.Open
nCal.Populate
nCal.RedrawControl
nDate.RedrawControl
 
Some help would be great, thanks.



Replies:
Posted By: nvierros
Date Posted: 27 September 2006 at 7:28am
 Anyone? Please?


Posted By: Umesh
Date Posted: 27 September 2006 at 9:32am
Hey
nCal.SetDataProvider "Provider=sqloledb;Server=xfs1;Database=newgen;User ID=sa;Password=Newgen011"
IF Not CalendarControl.DataProvider.Open  THEN
CalendarControl.DataProvider.Create
ELSE
nCal.DataProvider.CacheMode = xtpCalendarDPCacheModeOnRepeat
nCal.DataProvider.Open
ENDIF

nCal.Populate
nCal.RedrawControl
nDate.RedrawControl
 
Thank's
I thinks some will be happen with you


Posted By: nvierros
Date Posted: 27 September 2006 at 10:22am
Originally posted by Umesh Umesh wrote:

Hey
nCal.SetDataProvider "Provider=sqloledb;Server=xfs1;Database=;User ID=sa;Password="
IF Not CalendarControl.DataProvider.Open  THEN
CalendarControl.DataProvider.Create
ELSE
nCal.DataProvider.CacheMode = xtpCalendarDPCacheModeOnRepeat
nCal.DataProvider.Open
ENDIF

nCal.Populate
nCal.RedrawControl
nDate.RedrawControl
 
Thank's
I thinks some will be happen with you
 
This still does nothing, it makes the connection but nothing actually shows in the calendar! :(


Posted By: sserge
Date Posted: 02 October 2006 at 4:17pm
Hi,

If you do use MS SQL Server connection, I would suggest you to use Custom Data Provider for SQL Server. The example is available in regular sample application.

--
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