provide storage for result sets in report views
This commit is contained in:
parent
e3ac0a35e9
commit
e6e9d4de82
2 changed files with 7 additions and 1 deletions
|
@ -140,6 +140,10 @@ class ResultsConceptView(ConceptView):
|
||||||
reportName = None # define in subclass if applicable
|
reportName = None # define in subclass if applicable
|
||||||
reportType = None # set for using special report instance adapter
|
reportType = None # set for using special report instance adapter
|
||||||
|
|
||||||
|
def __init__(self, context, request):
|
||||||
|
super(ResultsConceptView, self).__init__(context, request)
|
||||||
|
self.resultSets = {} # storage for result sets from reports
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
def result_macros(self):
|
def result_macros(self):
|
||||||
return self.controller.getTemplateMacros('results', results_template)
|
return self.controller.getTemplateMacros('results', results_template)
|
||||||
|
|
|
@ -242,5 +242,7 @@ class SubReportField(Field):
|
||||||
|
|
||||||
def getValue(self, row):
|
def getValue(self, row):
|
||||||
ri = self.getReportInstance(row)
|
ri = self.getReportInstance(row)
|
||||||
return ri.getResults()
|
rs = ri.getResults()
|
||||||
|
ri.view.resultSets[ri.name] = rs
|
||||||
|
return rs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue