I need to create an Aggregate Field in a TClientDataSet, but as said in the docs:
Choose OK. The newly defined aggregate field is automatically added to the client dataset and its Aggregates property is automatically updated to include the appropriate aggregate specification.
When I add a new aggregate field, the aggregate specification isn't added to the TClientDataSet's Aggregates, therefore I can't use its OnUpdateMethod.
I also tried handling the OnChange event of my new Aggregate Field, but it isn't fired at all.
Am I doing something wrong? I just want to have an aggregated field and fire an event everything it's value change.
Is this broken on delphi? Because what is in the documentation doesn't reflect the actual behavior.
edit: @Michal Sznajder I'm using Delphi 2007