add new field to kbmmemtable
I would like to use a kbmmemtable in report.
kbmmemtable is on form in delphi. I can read all fields and records
But I have a problem with add new fields to the dataset.
I tried to do like this:
and now how to add new fileld into dataset ?
Is it possible?
Or, how to create internal dataset with I can dynamically append new rcords in runtime and the dataset shoud be visible as datasource for MasterData band?
kbmmemtable is on form in delphi. I can read all fields and records
But I have a problem with add new fields to the dataset.
I tried to do like this:
var dataset : TDataSet;
begin
  dataset := TDataSet(Report.GetDataset('kbmMemTable'));
  dataset.FieldDefs.Add('Age',ftInteger,0,True);        <--- Acces Violation
end;
and now how to add new fileld into dataset ?
Is it possible?
Or, how to create internal dataset with I can dynamically append new rcords in runtime and the dataset shoud be visible as datasource for MasterData band?
Comments