Skip to content

Is it possible to configure a Report Rule so that Customer Order Confirmation (or a similar document) automatically selects a different default Report Layout depending on which Company the order belongs to, since each Company has its own layout?

Answer

Resolve the actual Company from the report's own Site/Contract value using Site_Api.Get_Company('[@<ReportName>/CONTRACT]'), substituting the specific report's own name in place of the report field reference, as a Report Rule condition/parameter expression, since Company itself isn't always directly available as a report field. Define separate rule conditions per resolved Company value, each pointing at that Company's own specific layout. Deriving Company from the report's own Site/Contract value this way, via Site_Api.Get_Company, is the key technique that makes per-Company layout selection actually work for documents like Customer Order Confirmation or Pro Forma Invoice.

← Browse Reporting and analytics questions