BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using ClientDataSets

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports)
View previous topic :: View next topic  
Author Message
Tim
Guest





PostPosted: Wed Sep 07, 2005 8:41 am    Post subject: Using ClientDataSets Reply with quote



If I connect an RvDataSetConnection to a report using a Direct Data View and
then have an SQLQuery as the DataSet for the Connection, I get an 'Operation
not allowed on unidirectional dataset' error.

By adding a DataSetProvider and ClientDataset in between, I can solve this
problem, but it then takes three components connected to an
RvDataSetConnection. Is there a simpler way of getting round the error or am
I solving it the normal way?

Thanks.


Back to top
Thomas Pfister
Guest





PostPosted: Wed Sep 07, 2005 6:52 pm    Post subject: Re: Using ClientDataSets Reply with quote



Tim,


Quote:
Is there a simpler way
of course <g


what version of Rave do you use ?

you must set the property "RestoreDataset" to False!
In Rave versions earlier 5.1 (Rave5, bundled with Delphi 7 for example) you
must create the OnRestore-event and insert only a comment that's the event
will fire.

:-) thomas


"Tim" news:431ea72e$1 (AT) newsgroups (DOT) borland.com...
Quote:
If I connect an RvDataSetConnection to a report using a Direct Data View
and
then have an SQLQuery as the DataSet for the Connection, I get an
'Operation
not allowed on unidirectional dataset' error.

By adding a DataSetProvider and ClientDataset in between, I can solve this
problem, but it then takes three components connected to an
RvDataSetConnection. Is there a simpler way of getting round the error or
am
I solving it the normal way?

Thanks.





Back to top
Tim
Guest





PostPosted: Thu Sep 08, 2005 6:00 am    Post subject: Re: Using ClientDataSets Reply with quote




"Thomas Pfister" <thomas (AT) spam-mail (DOT) de> wrote

Quote:
Tim,


Is there a simpler way
of course
what version of Rave do you use ?

you must set the property "RestoreDataset" to False!
In Rave versions earlier 5.1 (Rave5, bundled with Delphi 7 for example)
you
must create the OnRestore-event and insert only a comment that's the event
will fire.

Hi Thomas,

Yes, I am using Rave5 bundled with Delphi 7. I have created an OnRestore
event as you suggest and it works - no error message now when I close the
report. I assume that later versions of Rave have a RestoreDataset property
instead?

Thanks.



Back to top
Thomas Pfister
Guest





PostPosted: Thu Sep 08, 2005 3:46 pm    Post subject: Re: Using ClientDataSets Reply with quote

I assume that later versions of Rave have a RestoreDataset property
Quote:
instead?
correct, the OnRestore-event is the workaround for Rave < 5.1


:-) thomas

Quote:
Hi Thomas,

Yes, I am using Rave5 bundled with Delphi 7. I have created an OnRestore
event as you suggest and it works - no error message now when I close the
report. I assume that later versions of Rave have a RestoreDataset
property
instead?

Thanks.





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (RaveReports) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.