refer to variable from subReport

guzialguzial Poland
edited 8:16PM in FastReport 2.xx VCL
hello everybody ;)

i have on my report 2 subReports and every of that sub reports contains masterDatas bands. I want to on report have one memo where be sum of records from that masterdatas, it is not a problem to do somethig like that inside subReport on masterFooter band :
[SUM(someData, MasterData1)] and that will sum up records from masterdata1

but how can i do it outside subReport (on main report) - it doesn't work - why ??
mayby i should do something like [SUM(someData, SubReprot1.MasterData1)] - but id doesn't work too

thanks 4 help

sorry 4 my english

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 8:16PM
    Use an intermediate variable and use it in main report
    but you willonly be able to use it in areas after subrep is finished.
    regards ;)
  • guzialguzial Poland
    edited 8:16PM
    yes i did by variable and it works

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.