Page 1 of 1

configure charteditor datasource series

Posted: Thu Aug 23, 2012 10:25 am
by 16461312
hello,
on charteditor, is possible to configure series datasource to clear dataset's list and set to an created dataset ?
has you can see in attach, i want:
1 - set datasource serie to a dataset ( not manual, random,etc, options)
2 - clear datasets list
3 - add dataset option and select them ("FrmEdit.dados")

thanks 4 your time

Re: configure charteditor datasource series

Posted: Thu Aug 23, 2012 2:58 pm
by yeray
Hi,

Have you read the "Tutorial 8 - Database access"? I'd suggest you to do so if you haven't yet.
Having a TTable, TQuery or TClientDataset on your Form, the TDBChart detects it and shows the fields on it.

Re: configure charteditor datasource series

Posted: Fri Aug 24, 2012 10:08 am
by 16461312
hy,
i already have my dataset configured(setting serie dataource), my problem is having others on dataset list that want remove(with empty names....), tried series[x].datasources.clear and nothing...
other thing, how set datasource serie tab to be opened when open editor ? tried ChartEditorPanel1.Editor.TabSeries.PageControl.ActivePageIndex=3 and nothing
thanks

Re: configure charteditor datasource series

Posted: Fri Aug 24, 2012 3:33 pm
by yeray
Hi,

I'm afraid I'm still not sure to understand you. You have a dataset, you want to assign it, but you want to clear it?
I don't see what usage it could have.

A simple example project we can run as-is to reproduce the situation here would probably be helpful.
Thanks in advance.