Databasefields not reflecting the database content after "OnGetText" modification


I do have a problem with creating a report.

In my delphi, I have a dataset, containing 2 fields:

  • TWideStringField
  • TIntegerField

Both fields have an "OnGetText" eventhandler that can modify the displayed content

Eks TIntegerField.OnGetText:

Case Sender.AsInteger of:

1: Text:='Low';

2: Text:='Medium';

3: Text:='High';

else Text := 'Unknown';


Adding this field to a MasterBand in the report, it shows correctly

Eks: TWideStringField.OnGetText

Text := Sender.AsString + ' Text added';

Adding this field to a MasterBand in the report, it shows only the raw database string and not the modified string.

(In the TDBGrid in Delphi, it displays correctly)

Any suggestion?




  • gpigpi Volnovakha, Ukraine

    FR doesn't use OnGetText for string fields

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.