Problem with datasource of imported series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Asseco
Newbie
Newbie
Posts: 6
Joined: Tue Mar 25, 2014 12:00 am

Problem with datasource of imported series

Post by Asseco » Wed Apr 09, 2014 8:23 am

Hi,
I have chart's definition saved in database (I use SaveChartToStream). There is Line Serie with type of DataSource = Dataset in the chart.
If I read this definition from database (I use LoadChartFromStream) the Line Serie has type of DataSource = Manual.
The same behaviour if I set type of DataSource = Summary etc. After reading - the type of DataSource is Manual.
How to protect this setting?

Thanks
Roman Krupicka

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with datasource of imported series

Post by Yeray » Wed Apr 09, 2014 10:29 am

Hi Roman,

It looks as the same discussed here some time ago.
http://www.teechart.net/support/viewtop ... =3&t=11558

Here the ticket in the public tracker.
http://bugs.teechart.net/show_bug.cgi?id=185
Feel free to add your mail to the CC list to be automatically notified when an update arrives
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Asseco
Newbie
Newbie
Posts: 6
Joined: Tue Mar 25, 2014 12:00 am

Re: Problem with datasource of imported series

Post by Asseco » Wed Apr 09, 2014 11:15 am

Hi Yeray,
thanks for link. I really have similar problem, I tried to do some investigation a I found out this:

I have chart on form with some DataSet (ADO, SDAC,...).
I set for example TLineSeries.DataSource to my DataSet.
Property DataSource is stored in DFM.
Compile and run.
In run time I show chart editor. It looks DataSource type = DataSet.
=> Chart is OK.

But if I save this chart in run time to tee file and load again from the tee chart, DataSource = nil.
Property DataSource is stored in tee file but it doesn't assign after loading.
If I manually set DataSource to my DataSet, all is OK...

Regards
Roman Krupicka

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problem with datasource of imported series

Post by Yeray » Thu Apr 10, 2014 11:26 am

Hi Roman,

I've made a simple example to reproduce the problem:
testDatasourceStream.zip
(3.24 KiB) Downloaded 556 times
I've also uploaded it to the ticket:
http://bugs.teechart.net/show_bug.cgi?id=185
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply