Print Thread
Does a similar procedure to SaveToFile exist?
#8058 01/01/06 11:07 PM
Joined: Jan 2006
Posts: 16
Julio Offline OP
Member
OP Offline
Member
Joined: Jan 2006
Posts: 16
I

Re: Does a similar procedure to SaveToFile exist?
#8059 01/02/06 08:29 PM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
No, there are no standard methods or properties for this. Perhaps a memory dataset component exists that has this functionality and can be loaded from the TOracleDataSet (or any TDataSet descendant)?


Marco Kalter
Allround Automations
Re: Does a similar procedure to SaveToFile exist?
#8060 01/03/06 04:55 PM
Joined: Jan 2006
Posts: 16
Julio Offline OP
Member
OP Offline
Member
Joined: Jan 2006
Posts: 16
Thank you for your advice.I

Re: Does a similar procedure to SaveToFile exist?
#8061 01/03/06 11:00 PM
Joined: Sep 2004
Posts: 46
P
Member
Offline
Member
P
Joined: Sep 2004
Posts: 46
Although I have never tried, You can use
Delphi's standard TClientDataSet Component.
Using it's LoadFromFile/SaveToFile method,
you can load and save a dataset to/from an xml file.

Re: Does a similar procedure to SaveToFile exist?
#8062 01/04/06 04:18 PM
Joined: Jan 2006
Posts: 16
Julio Offline OP
Member
OP Offline
Member
Joined: Jan 2006
Posts: 16
Yes, yesterday night I was thinking about it and this morning I've tried it, but doesn't work. I don't know how to connect the TOracleDataSet to TClientDataSet. The procedure Assing doesn't go with TOracleDataSet. Using TVirtualTable is simpler than Delphi's component. The only inconvenient I find is the format of the exported file: it's not xml, which is very compatible by now.

Re: Does a similar procedure to SaveToFile exist?
#8063 01/05/06 09:35 AM
Joined: Sep 2004
Posts: 46
P
Member
Offline
Member
P
Joined: Sep 2004
Posts: 46
If you connect the TOracleDataSet to TClientDataSet, you have to use TDataSetProvider Component, too.

The relation figure among these components is the following:

Oracle Sever -> TOracleSession -> TOracleDataSet -> TDataSetProvider(dataset property) -> TClientDataSet(providername property) -> TDataSource -> Delphi DB Controls

If you know how to use TClientDataSet in detail, please look at Delphi help or look for it in the web sites.

>>Using TVirtualTable is simpler than Delphi's component. The only inconvenient I find is the format of the exported file: it's not xml, which is very compatible by now.
I think how to use TClientDataSet is simlper than you think.

Re: Does a similar procedure to SaveToFile exist?
#8064 01/05/06 02:28 PM
Joined: Jan 2006
Posts: 16
Julio Offline OP
Member
OP Offline
Member
Joined: Jan 2006
Posts: 16
Thank you, I'll try it. Although I find using DOA without any other component is very easy, I realize that TClientDataSet and TDataSetProvider components give you more posibilities. Next project I'll use this method, because my actual project is too big to change all the data modules.

Re: Does a similar procedure to SaveToFile exist?
#8065 01/05/06 03:50 PM
Joined: Sep 2004
Posts: 46
P
Member
Offline
Member
P
Joined: Sep 2004
Posts: 46
>I realize that TClientDataSet and >TDataSetProvider components give you more >posibilities
yes, I think so. TClientDataSet has a lot of useful functionality(local sorting, filterling, aggregating, grouping, master-detail relation and so on) and makes the developing database-software easier.It's great component but if you use a lot of TClientDataSet's functionality, you should the latest version of Delphi as possible as you can because the older Delphi version(5,6・・) has some bugs.

If you use these Delphi Version, you should confirm before you use TClientDataSet with your projects.

Some bugs are listed in
www.distribucon.com/midasbug/

Have a good time with TClientDataSet.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.027s Queries: 14 (0.006s) Memory: 2.5277 MB (Peak: 3.0393 MB) Data Comp: Off Server Time: 2024-05-09 14:54:06 UTC
Valid HTML 5 and Valid CSS