How do I automatically select the report layout based on logic?

  • 21 September 2022
  • 2 replies

Badge +1

The supplier Check report has several layouts based on Banks. I want to select multiple bank checks and when I print, system will select automatically layouts based on banks.

2 replies

Userlevel 7
Badge +13


You can use Report Rules for this. Have a look at the following link.

In the condition you can check against the bank is it’s in the XML data, or you can write a select to get the bank code or something and check it against the known bank value.

The action can be a “Set Default” or “Set Property” depending on if you want to change it later if you are printing though the Print Dialog or direct printing. If you are printing through the Print Dialog then you can use a “Pre Select” action as well.

Hope this helps.


Userlevel 5
Badge +12

You can also define pay documents by cash account.