So if you’re like me and you spent three hours figuring out why copying the MultiDefaultbyColumn.pt report code exactly and it wouldn’t combine multiple results in the table… I have the fix for you.
It turns out Senaite is somehow using the filename to dictate if the report is a Single or Multi report. Once I renamed my file from TrustPointe.pt to MultiDefaultbyColumnTrustPointe.pt it worked like it should.
Yes, that’s true. senaite.impress uses the report name to distinguish between a single- and multi report. A report starting or ending with the workd Multi , e.g. MultiReport.pt or PublicationReportMulti.pt will be considered as a multi report and it will receive all selected objects in a collection.
So the code looks for CONTAINS “multi” and if it’s in the filename it treats it as a Multi report. At least I know I can move Multi around in the name so it’s easier to see which report template I’m working with.