Hi everybody,
Somehow I could not figure out a simple problem.
I have a very simple report with one group and a summary. In the summary and in the group footer I'm printing totals. Now, if I only have one group, I don't want to print totals to not repeat the same information.
Very simple.
So, I've created a report variable called nGroups, set it to SUM, added a _VFP.SetVar('nGroups',m.nGroups + 1) in Group Footer OnExit expression and put
nGroups>1 as Print When condition for my amounts in the Summary. I also put nGroups in the Summary to make sure it's calculated correctly.
Now, I see 2 for nGroups in the Summary, but the amounts don't print.
I could not find out what's wrong and I spent about an hour on this already.
Thanks a lot in advance.
If it's not broken, fix it until it is.
My Blog