Skip to main content

OSGi Interface to Create Custom Header and Footer

Goal: Functional

Developer: Hengsin (talk)

Feature Ticket: IDEMPIERE-4894

Description: Add AD_PrintHeaderFooter table and OSGi interface IPrintHeaderFooter to replace Standard Header and Footer for tabular (non-form) report.

Development​

  • Create OSGi component for the org.idempiere.print.IPrintHeaderFooter interface
  • Create a AD_PrintHeaderFooter record for the created OSGi component. Fill Source Class field with Component Name
  • Example AD_PrintHeaderFooter record: 4894 Print Header Footer Window

Print Header Footer Window

Usage​

  • At print format, uncheck Standard Header Footer and select the desire Print Header Footer record.
  • Example: 4894 Print Format Example

Print Format Example Header and Footer

Example​

4894 BusinessPartnerDetails StandardHeaderFooter

Business Partner Details with Standard Header and Footer

4894 BusinessPartnerDetail ExamplePrintHeaderFooter

Business Partner Detail Example Header and Footer


Source: Wiki