Document Generation Datalist Action

Introduction

The Document Generation Datalist Action is a plugin that exports form data to a Word document based on a specific template.

Plugin information

  • Plugin Available in the Bundle: Document Generation Datalist Action
  • Compatibility: Joget DX 8

Get started

Prerequisites

Create a word template

  • Develop a Word document template with fields determining the layout, such as creating a resume template. (See Figure below for an example of a resume template).
  • Use form field IDs as placeholders for data. These placeholders follow the format $(field_id), such as $(name) or $(email).
  • For form grids, use ${<formGridId>[<rowNumber>].<columnFieldId>} to print specific values or ${formGridId} to print the entire grid.

Where to Get the Plugin

You can download the plugin from Document Generation Datalist Action Releases.

How to install

  1. Download the plugin JAR file from the releases page.
  2. Go to Settings > Manage Plugins > Upload Plugin.
  3.  You can import the demo app or create the app from scratch.

How to use it

Create form and datalist from scratch
  1. Download and import the demo app, or create the form and datalist from scratch.
  2. Create a new form with the desired fields using form builder.
  3. Generate a CRUD by using Generate App option shown below:
  4. Go to the List Builder and select the list of created forms.
  5. Drag and drop the Document Generation Datalist Action plugin into the list.
  6. Complete the plugin configurations using the properties in the Document Generation Datalist Action Properties section.
  7. When a form is created or edited in the CRUD, you can download it using the Download Generation Datalist Action button.

Using hash variable to manage template file
  1. Upload the Word template in the App's Resource.

  2. Click the plugin > plugin Configuration > Template file, and bring the hash variable of the resource that was uploaded previously.

Configure document generation datalist action properties

Fields to configure:

Image pixel dimension (Width x Height)

Define dimensions for images.
Fields to configure:

  • Image Width (pixels): Image width to be exported to, in pixels.
  • Image Height (pixels): Image height to be exported to, in pixels.

Form grid customization

Fields to configure:

  • Grid Width (Big Integer): Define the width.
  • Grid Direction: Choose vertical or horizontal direction.
  • Include Header: Enable this option to include headers in the exported grid.

Download the plugin and source code

Download sample app

Download the demo app for Document Generation Datalist Action:
Created by Julieth Last modified by Aadrian on Nov 19, 2024