HowTo #085

How to control when header lines are displayed in your reports?

Use Case:

In day-to-day work with reports, you may want to display different information depending on the situation. For example, when sending documents to customers, the wording in the header should match the process:

  • For deliveries, you want to show a Shipment Date
  • For pickups, you would like to show a Pickup Date instead

Without conditions, you would have to decide on one of the two names for the field. As a sales or administrative user, you want your documents to automatically show the correct information based on the document data, ensuring clear communication with your customer.

In a previous HowTo, you already learned how to set conditions for Report Lines. This HowTo builds on that functionality and shows you how to define conditions for Header Lines.

Let’s have a look at how you can set this up!

HowTo: Set up conditional Header Lines for Reports

01

Open Timber Reports.

02

Select the report you want to modify, e.g. Sales – Order.

03

Click Edit in the top menu to open the Timber Report Header Setup.

04

Create a new Line in the Right Header of the Report by clicking on Right Header > New Line in the Header FastTab.

05

Enter the following values for the new Line:

  • Table ID: 36
  • Table Name: Sales Header (gets filled automatically)
  • Field ID: 21
  • Field Name: Shipment Date (gets filled automatically)
06

While selecting the Line, click on Right Header > Translations.

07

Select ENU as Language Code and enter Shipment Date in the Description.

08

Repeat steps 4 and 5 to create a new Line with the same values. While selecting that second Line, again click on Right Header > Translations. Select ENU as Language Code and enter Pickup Date in the Description.

09

Now that we’ve created two Lines that both show the Shipment Date, but with a different label, we should decide when each Line should be shown. To do so, select the first Line you created and click on Right Header > Conditions.

10

In the Condition Table ID field, select the table on which the condition should be based, e.g. 36 – Sales Header.

11

In the Condition Field ID field, select the field from the document header that should be evaluated, e.g. 27 – Shipment Method Code.

12

Enter the desired filter in the Filter field, e.g. <>PICKUP if you only want to show this field if the Shipment Method is not PICKUP. Make sure to select the Shipment Method Code(s) that your company has set up for orders that will be picked up.

13

Repeat steps 9 to 11 for the second Line you created.

14

In the Filter field, enter =PICKUP to only show this field if the Shipment Method is set to PICKUP. Again, make sure to select the correct code that is used in your company.

15

Close the Timber Report Header Setup.

16

Open the adjusted report, e.g. in this case a Sales Order and select the Shipment Method Code which you set up for pick up in the General FastTab.

17

In the top menu click Print/Send > Print Confirmation and in the window that opens click on Preview.

18

Close the preview, select a different Shipment Method Code and repeat step 17 to see a different label is shown for the Shipment Date.

Conclusion

With conditions in header lines in Timber Reports, you can control which information is displayed based on defined filter criteria.

This ensures that your documents remain clear and easy to understand for your customers, without additional programming effort.

    Feature of the Week

    No ads: A new HowTo for acadon Software every week.

    Wood be nice to have

    You have an idea for a new function or feature?

    Only for acadon customers

    OnRoute App
    Try our new OnRoute app free for 30 days!
    timber tree
    timber tree
    acadon logo
    The acadon AG has 40 years of experience in ERP software for the wood industry. As business optimizers, we develop tailored solutions and strategies for your company.
    © 2024 acadon AG. All rights reserved.

    Request consultation now!

    Webinar registration

    Request free demo now!