 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tim Guest
|
Posted: Wed Sep 07, 2005 8:41 am Post subject: Using ClientDataSets |
|
|
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
|
Posted: Wed Sep 07, 2005 6:52 pm Post subject: Re: Using ClientDataSets |
|
|
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
|
Posted: Thu Sep 08, 2005 6:00 am Post subject: Re: Using ClientDataSets |
|
|
"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
|
Posted: Thu Sep 08, 2005 3:46 pm Post subject: Re: Using ClientDataSets |
|
|
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 |
|
 |
|
|
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
|
|