add: support for category rows/ execution steps
This commit is contained in:
parent
43e51e7538
commit
459bd2d6bf
2 changed files with 9 additions and 0 deletions
|
@ -202,4 +202,8 @@ class SubReportField(Field):
|
|||
def getValue(self, row):
|
||||
ri = self.getReportInstance(row)
|
||||
return ri.getResults()
|
||||
|
||||
def getCategoryValue(self, row):
|
||||
ri = self.getReportInstance(row)
|
||||
return ri.getCategoryResults()
|
||||
|
|
@ -103,6 +103,11 @@ class ReportInstance(BaseReport):
|
|||
qc = CompoundQueryCriteria(parts)
|
||||
return ResultSet(self, result, rowFactory=self.rowFactory,
|
||||
sortCriteria=self.getSortCriteria(), queryCriteria=qc)
|
||||
|
||||
def getCategoryResults(self):
|
||||
result = list(self.selectObjects(None))
|
||||
return ResultSet(self, result, rowFactory=self.categoryRowFactory,
|
||||
filterDublicate=True)
|
||||
|
||||
def selectObjects(self, parts):
|
||||
# to be implemented by subclass
|
||||
|
|
Loading…
Add table
Reference in a new issue