For the complete documentation index, see llms.txt. This page is also available as Markdown.

Creating a list of generated documents

A link can be created to the generated document, e.g.:

  • on the form - using the component Document List and Document Generator In the component settings Document Generator. The component itself Document List must listen for this Document Generator and retrieve the value from it via valueSourceId.

  • on the form - using only Document List In the form's XML, an entry with the definition of the document generator should be added, where:

    • document_name.pdf — any name under which the user will receive the generated document

    • template_name.xsl-* — the name and version of the XSL template located in the template repository

Example configuration of DocumentGenerator in the form source
<x1:DocumentGenerator>
  <x1:Item generatorName="fop" fileName="nazwa_dokumentu.pdf" documentTemplate="nazwa_szablonu_wydruku.xsl-*">
  </x1:Item>
  <x1:Item generatorName="fop" fileName="nazwa_kolejnego_dokumentu.pdf" documentTemplate="nazwa_szablonu_wydruku_kolejnego_dokumentu.xsl-*">
  </x1:Item>
</x1:DocumentGenerator>
  • on the form - using the artifact to present the link Content (TextContent) (Availability of the functionality depends on the license and may not be available in all deployments.) In the text content artifact, we provide a link to the document located in Document Generator. In the resourceId = GesDocumentGenerator1-0 parameter, in addition to the component ID, we provide Document Generator the consecutive number of the PDF document, where 0 means the first document in items, 1 — the second document on the list, etc.

    Additionally:

    • text content must listen for the added to the artifact containing Text Content sessionToken session variable;

    • sample links in the text content:

      • {hyperlink:files?resourceType=session&sessionToken=${formInstanceNumber}&resourceId=GesDocumentGenerator1-0}Information Form{hyperlink}

      • {hyperlink:files?resourceType=session&sessionToken=${formInstanceNumber}&resourceId=GesDocumentGenerator1-1}Loan Application{hyperlink}

  • in the sidebar (Availability of the functionality depends on the license and may not be available in all deployments.) In this case, you need to:

    • option in the Properties the form in the section Side and bottom panel add Content (TextContent) containing the content to be displayed in the sidebar with a link to the document, e.g.:

    Illustration 1. "Contents" (text contents) added to the so-called sidebar
    • option in the Properties the form in the section Dependencies provide the names of the XSL templates that create the PDF. Since in Dependencies only Contents can be selected, we add these dependencies in the form's XML source.

Last updated

Was this helpful?