Using configurable designs

You can use a different report design if the sales contract is sent to the US Government. Sales contracts sent to other business partners use the default report design.

Use case:

  • You want to create a document type and report rule for the Sales Contract Acknowledgement report. You can use Infor Reporting to create two different report designs. The default report design is saved as report. The specific report design is saved as dd250. Add a customer defined field (CDF) to the Business Partner (tccom110) table that indicates the business partner is the US Government.
  • You add the two different report designs to the report rule. The specific report design is used to render the report depending on the outcome of the expression.

Complete these steps:

  1. Start the Report Rules (ttrpi2520m000) session. Select the Sales Contract Acknowledgement report (tdsls340501000) and open its details.
  2. On the Design Codes tab, create a new design code called dd250 with this expression:
    table ttccom110
    
    select tccom110.cdf_gov
    from tccom110
    where tccom110.ofbp = :tdsls300.ofbp
    as set with 1 rows
    selectdo
             if tccom110.cdf_gov = tccdf______chk.yes then
                  return(true)
            endif
    endselect
    return(false)
    
  3. Save this record.
  4. Click Validate to validate the report rule.
  5. Print the Sales Contract Acknowledgement report for the US Government to the Document Output Management device and view the result.

    Based on the setting of the US Government field, this screenshot shows the result: