Recent

Author Topic: Fortes report - nested groups problem  (Read 3256 times)

grandehombre

  • New Member
  • *
  • Posts: 42
Fortes report - nested groups problem
« on: July 30, 2013, 05:49:42 am »
Hi,

I have created a FortesReport report with the layout shown in the attached image

(Briefly:
group1: (field=site)
group 1 'header' band
   group 2: (field=switchzone)
   group 2 'header' band
       group 3: (field=project)
       group 3 'header' band

       details band
       
       group 3 'summary' band   
)

I have assigned the relevant data fields to each group and have added a 'header' band in each group, showing the group-field's value.

For some reason, I only don't get group breaks, ie I see the first record of each group and all of the records in the details band.
I expected to see group breaks whenever the relevant group fields change.

If I remove the innermost group, everything works???

I have created the groups by creating the outermost group first then adding the next group inside it and so on.

I have not been able to find much info on FortesReport anywhere.
There is an English-language web site that shows 2 different reports but not much else (that I can find)

Any tips would be most welcome!

Cheers,
Nick

ps: is there any way to make a report print/calculate summaries while not showing the details? When I hide the details, I get zeroes in the summaries.

Hmmm. I have found a way around the problem but I still think there must be a cleaner way. Here is the solution

(Briefly:
group1: (field=site)
group 1 'header' band
   group 2: (field=site + switchzone)
   group 2 'header' band
       group 3: (field=site + switchzone + project)
       group 3 'header' band

       details band
       
       group 3 'summary' band   
)
« Last Edit: July 31, 2013, 04:00:12 am by grandehombre »
Lazarus v1.2RC2  i386-win32-win32/win64,  FPC v2.6.2, svn43696 on Win7-64 and win8.1

 

TinyPortal © 2005-2018