Not using the Dabo Framework but still wanting to use the reporting tools and feeding data to it from SQLAlchemy.
result = session.query(db.Cellarbook.currentvalue, db.Drinkinfo.name, db.Vintage.vintage, db.Vintage.notes) result = result.join(db.Drinkinfo) result = result.join(db.Vintage) repFile = r'C:\dev\twcbv4\twcbsrc\reports\reportdefs\daboTest.rfxml' outFile = r'C:\dev\twcbv4\data\generatedReports\daboTest.pdf' from dabo.lib.reportWriter import ReportWriter from dabo.lib import reportUtils print "Instantiating the report writer..." rw = ReportWriter() # Set some required properties: rw.ReportFormFile = repFile rw.OutputFile = outFile rw.Cursor = result.all() print "Writing %s..." % outFile rw.write()
As you can see from the above it is quit simple to do.
self.Record['columnName']
self.Record.__dict__['columnName']
There was an error while loading. Please reload this page.