Using different rendering options for one report

You can use different rendering options for your report. For example, you can use LN native rendering if RFQ line texts should not be printed on your report. In other cases, you can render your report using Infor Reporting.

Use case:

  • Use the RFQ document type created earlier.
  • You define two different report rules for the Request for Quotation report (tdpur140101002). The default report rule was already created and must be modified to use Infor Reporting.

Complete these steps:

  1. Start the Report Rules (ttrpi2520m000) session. Select report tdpur140101002, and open its details.
  2. In the Report Server field, select a report server from the available report servers and save this record.
  3. Return to the Report Rules (ttrpi2520m000) session and add a new rule with these properties:
    • Report : tdpur140101002
    • Is Default : No
    • Document Type : RFQ
    • Report Server : <empty>
    • Render Format : PDF
  4. Add this code to the Condition Expression field:
    domain tcyesno line.text
    get.var(dom.batch.session.pid, "prnt.line.txt", line.text)
    if line.text = tcyesno.no then
           return(true)
    endif
    return(false)
  5. Save this record.
    Note: On the Variables tab, nine variables are created. These variables must get a valid expression.
  6. Click Validate to validate the report rule.
  7. Run the Request for Quotations session without Line Texts and with Line Texts. View the results.

    This screenshot shows the result based on the content of the prnt.line.text field on the form: