TFRXUserDatset triggered twice for each field

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 8:40AM
    the same dataset should not be connected to the report and the band.
  • edited 8:40AM
    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 8:40AM
    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 8:40AM
    gpi wrote: »
    gpi 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?
    yes I have a list of the fields there.

    meee

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.