dabo Commit
Revision 6824
Date: 2011-09-06 13:42:52 -0700 (Tue, 06 Sep 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6824

Changed:
U   trunk/dabo/lib/reportWriter.py

Log:
Moved procesing of variables further down in the iteration, to allow for the 
values from the last record iteration to print in the group or page footer.


Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py      2011-09-06 20:10:16 UTC (rev 6823)
+++ trunk/dabo/lib/reportWriter.py      2011-09-06 20:42:52 UTC (rev 6824)
@@ -2413,11 +2413,6 @@
                                                y = printBand("groupFooter", y, 
group)
                                                self.Record = record
 
-                       if cursor_idx > 0:
-                               # Any report variables need their values 
evaluated again:
-                               processVariables()
-
-
                        # print group headers for this group if necessary:
 
                        # First, start a new page if necessary. But only one 
new page:
@@ -2436,10 +2431,15 @@
                                self.Record = _lastRecord
                                endPage()
                                self.Record = record
+                               processVariables()
                                self.Canvas.showPages()
                                beginPage()
                                y = None
 
+                       if not startNewPage and cursor_idx > 0:
+                               # needed variable processing hasn't yet occured 
for this record:
+                               processVariables()
+
                        # Now, iterate the groups and print them as necessary:
                        for idx, group in enumerate(groups):
                                resetPageNum = 
eval(group.get("resetPageNumber", "False"))



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to