Using different overlays for each company

You can use a different overlay for each company in LN. For example, when printing an LN report in company 100, you want to use the house style for that company. When you print an LN report in company 200, you want to use another house style.

Use case:

  • Use the RFQ document type created earlier.
  • You create two different house styles and add these to the document type. Based on a condition, such as the used LN company, one of the two house styles is selected and merged with the document.

Complete these steps:

  1. Start the Document Types (ttrpi2510m000) session. Select the RFQ document type and open its details.
  2. On the Parts tab, open the already existing overlay part that contains the house style of your company.
  3. Add this code to the Condition Expression field:
    if dom.document.company = 100 then
           return(true)
    endif
    return(false)
  4. Save the record, and return to the document type.
  5. On the Parts tab, add a new record for another overlay part with these properties:
    • Description : Housestyle company 200
    • Destination Type : All
    • Part Type : Overlay
    • Overlay Type : All Pages
  6. Add this code to the Condition Expression field:
    if dom.document.company = 200 then
           return(true)
    endif
    return(false)
  7. Save this record.
  8. Create a PDF file with the house style for company 200 and upload this file to the new document type part.
  9. Click Validate to validate the document type.
  10. Run the Request for Quotations session in both company 100 and company 200.
  11. Print a Request for Quotation to the Document Output Management device and view the results.