TFRXUserDatset triggered twice for each field

edited 12:03AM in FastReport 4.0
Hi I am using a TFrxUserDataset and and a TFrxReport. I have some Fields defined in the TFrxUserDataset, I have the report dataset pointed at the TFrxUserDataset. Also I have the Masterdata band pointed at the TFrxUserDataset. I am using the TFrxUserDataset onGetValue to populate the fields in the report
if CompareText(VarName, 'Name') = 0 then
Value := Items[FRXDBWalkPlanner.RecNo].Caption

however I have noticed that the ongetdata is called twice for every field, which I am sure it should not be?

Would it be possible for someone to explain why it does this, or point out my error

thanks

meee

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:03AM
    the same dataset should not be connected to the report and the band.
  • edited 12:03AM
    gordk wrote: »
    the same dataset should not be connected to the report and the band.

    Thanks for the info, However if I don't connect the dataset to the report, I don't get the field list appear on the right of the report. If I don't connect the Masterdataband to the dataset then the TFrxUserDataset onGetValue does not fire? Should I be using a masterdataband or another type of band

    thanks

    Meee
  • gpigpi
    edited 12:03AM
    wrote:
    However if I don't connect the dataset to the report, I don't get the field list appear on the right of the report
    Did you set TfrxUserDataset.Fields property?
  • edited 12:03AM
    gpi wrote: »
    Did you set TfrxUserDataset.Fields property?
    yes I have a list of the fields there.

    meee

Leave a Comment