Page 1 of 1

TDBCrossTabSource LabelField OnGetText TField

Posted: Fri Aug 19, 2022 5:50 pm
by 16891703
Hi,

I'm using a TDBCrossTabSource for a chart. The field that I use as LabelField has the OnGetText event defined, however, this event is not used in the chart since the content of the field is shown and not what the event generates. Is there anything I can do to get what I need?

I'm using V2022.35.

In the help of a v2019 version it says that now TDBChart uses the OnGetText event, but it seems that this is not the case in TDBCrossTabSource.

TIA,
Ricardi

Re: TDBCrossTabSource LabelField OnGetText TField

Posted: Mon Oct 17, 2022 5:28 pm
by yeray
Hello Ricardi,

I'd like to apologize for the lack of reply here.

I've dropped a TChart and a TADOTable to a form. I've connected the TADOTable to the Employee table, and I've added a TBarSeries to the TChart, selecting the TADOTable as a TDBCrossTabSource.
However, I'm not sure what object does the OnGetText event refer to.

If you still have problems with it, do you have a simple example project we can run as-is here?