#1237: Report Designer - Variables - Attaching to bands
--------------------------+-------------------------------------------------
Reporter: lalong | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: 0.9.2
Component: reporting | Version: 0.9.1
Resolution: | Keywords: reportdesigner, pagefooter, variables
--------------------------+-------------------------------------------------
Comment (by lalong):
{{{
def setGroupVar(self, groupid=0, var='Var', val=0):
''' groupid is the group level
var is the user defined variable's name
val is the value to set
'''
self.ReportForm['Groups'][groupid][var] = val
def incGroupVar(self, groupid=0, var='Var', val=1):
''' increment the group variable by val '''
if not var in self.ReportForm['Groups'][groupid].keys():
self.setGroupVar(groupid, var)
self.ReportForm['Groups'][groupid][var] += val
def getGroupVar(self, groupid=0, var='Var'):
''' fetch the value for the group level variable '''
try:
return(self.ReportForm['Groups'][groupid][var])
except:
return (None)
}}}
--
Ticket URL: <http://trac.dabodev.com/ticket/1237#comment:2>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
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]