add new field to kbmmemtable

edited October 2016 in FastReport VCL 5
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:
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

  • gpigpi
    edited 1:47AM
    Try to create user function, call it and add a field to kbmmemtable in the Delphi's code

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.