After changing a text datafield (TppDBText) at run-time, report builder is returning a blank field. Do I need to do something to initialize the report so it will recognize the changed field?
did you use the beforeprint event of the tppdbtext or did you change the text within the database. If the change is within the database you need to reload the report (update all caching information).
I'm changing the datafield property of the TppDBText control before the report is printed (property changed from Vendor to Merchandise Type). I tried both before the report is run at all, and in the beforeprint event.
Here is a sample of the code I'm using to set the fields.
GroupHeader1.Visible := true; GroupFooter1.Visible := true; lMerchTypeVendor.Caption := 'Vendor'; //TppLabel - Header Item seems to be working hMerchTypeVendor.DataField := 'MerchName'; //TppDBText - Header title for Group dMerchTypeVendor.DataField := 'VendorName'; //TppDBText - Detail item fMerchTypeVendor.DataField := 'MerchName'; //TppDBText - Footer title for Group ppGroup1.BreakName := 'MerchType'; //This seems to be working
Comments
did you use the beforeprint event of the tppdbtext or did you change the
text within the database. If the change is within the database you need
to reload the report (update all caching information).
enjoy,
Ron.
is printed (property changed from Vendor to Merchandise Type). I tried both
before the report is run at all, and in the beforeprint event.
pse see below.
Did you try to set it after creating the report and before calling print?
luck.
GroupHeader1.Visible := true;
GroupFooter1.Visible := true;
lMerchTypeVendor.Caption := 'Vendor'; //TppLabel - Header Item seems to be
working
hMerchTypeVendor.DataField := 'MerchName'; //TppDBText - Header title for
Group
dMerchTypeVendor.DataField := 'VendorName'; //TppDBText - Detail item
fMerchTypeVendor.DataField := 'MerchName'; //TppDBText - Footer title for
Group
ppGroup1.BreakName := 'MerchType'; //This seems to be working
help.