Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Plugin Template Pack aims to factorize repetitive configurations of the same plugin throughout the same app in one place to ease future maintenance. It currently supports:-
with more plugin types to be supported in the future.
This plugin source code is available in a new open source repository at https://github.com/jogetoss/plugin-template-pack. JogetOSS is a community-led team for open-source software related to the Joget no-code/low-code application platform. Projects under JogetOSS are community-driven and community-supported, and you are welcome to contribute to the projects.
The easiest way to see how the Plugin Template Pack function is to create a simple Application. Here are the steps:
1. Go to the website https://github.com/jogetoss/plugin-template-pack.
2. Go to the "Releases" page (See Figure 1).
Figure 1 Release page link
3. Click on the .jar file to initiate the download (See Figure 2).
Figure 2 Plugin-template-pack .jar file
4. Go to your Joget Workflow localhost or server and log in as admin.
5. In Joget Console navigate to "Admin Bar > Systems Settings > Manage Plugins" and click the "Upload Plugins" button.
6. In "Upload Plugin", select the plugin .jar file you just downloaded, then click "Upload".
7. You should be able to view the newly installed plugin under the "Installed Plugins" tab.
8. Always uninstall the old plugin before uploading a new version.
9. The Joget Workflow Knowledge Base has more information on managing and developing plugins.
1. Start the Joget server and open the App Center .
2. Log in as admin and click on Design New App (See Figure 3) or click on existing application.
Figure 3 Design New App
3. For new applications, fill up the App ID with camel case, and App Name, and click on the "Save" button. (See Figure 4)
Figure 4 Fill up App Details
4. Create a New Form, fill up Form ID in camel case, Form Name, and Table Name then click on the Save button (See Figure 5).
Figure 5 Fill up Form Details
5. Fill up the form with several fields, save it and then click the "Generate App" button (See Figure 6).
Figure 6 Save Form and Generate App
6. After Clicking the "Generate App" button, generate the app with CRUD and Datalist included (See Figure 7).
Figure 7 Generate CRUD and Datalist
8. After generating the app, Launch the UI Builder by clicking on the newly created CRUD. (See Figure 8).
Figure 8 Enter UI builder
9. Navigate the user view menu elements and add the "Plugin Template Management" to the User view Menu. (See Figure 9).
Figure 9 Plugin Template Management
10. Leave the configuration of Plugin Template Management properties as default and save the User view Builder.
Figure 10 Edit Plugin Template Management
Name | Description |
---|---|
ID | The 'ID' in the property editor is a unique identifier. The value of this property is auto-generated. |
Custom ID | Item link slug. It is an Optional field. Info Ensure that value defined here is unique to other userview menus in the app since the first matching/conflicting ID will take precedence in page loading. |
Label | Menu label to be displayed to the end-user. It is a Mandatory field. |
Figure 11 UI (List) properties of Plugin Template Management
Name | Description |
---|---|
Button Position | The position of buttons in the Userview:
|
Selection Type | The type record selector in the userview:
|
Selector Position | The position of the record selector in the userview:
|
New Record Button Label | New Record Button Label to be displayed to the end-user. Default Value: New |
Edit Link Label | Edit Record Button Label to be displayed to the end-user. Default Value: Edit |
Delete Button Label | Delete Record Button Label to be displayed to the end-user. Default Value: Delete |
Custom Header | Custom Header in HTML. |
Custom Footer | Custom Footer in HTML |
Figure 12 UI (Add) properties of Plugin Template Management
Name | Description |
---|---|
Cancel Button Label | Cancel Button Label to be displayed to the end-user. Default Value: Cancel |
Save Button Label | Save Button Label to be displayed to the end-user. Default Value: Save |
Custom Header | Custom Header in HTML. |
Custom Footer | Custom Footer in HTML |
Figure 13 UI (Edit) properties of Plugin Template Management
Name | Description |
---|---|
Back Button Label | Back Button Label to be displayed to the end-user. Default Value: Back |
Save Button Label | Save Button Label to be displayed to the end-user. Default Value: Edit |
Custom Header | Custom Header in HTML. |
Custom Footer | Custom Footer in HTML |
Figure 14 Performance & Offline
Cache Settings
Name | Description |
---|---|
Scope | Caching options are:
|
Duration (s) | Duration in seconds to cache content defaults to 20 seconds if applicable. |
Read Performance Improvement with Userview Caching for more information
PWA Offline Settings
Note: PWA Offline support is dependent on the theme used.
Name | Description |
---|---|
Enable cache for offline support | Check this to enable caching for offline support, usually set for use on mobile browsers. |
Read Progressive Web Application (PWA) for more information.
Figure 15 UI List of Plugin Template Management
Figure 16 UI (Add) of Plugin Template Management
Figure 17 UI (Edit) of Plugin Template Management
The plugin types it supports, for now, are as follows:
Steps to use the Plugin Template - Datalist Formatter Plugin:
1. Launch the app, navigate to the Plugin Template Management menu, and click the "New" button to create a new Plugin Template (See Figure 10).
Figure 10 Create a new Plugin Template
2. Fill up the Plugin Template Management Page accordingly and for the plugin choose any one of the formatter under Datalist Column Formatter. (See Figure 11)
Figure 11 Fill up the Plugin Template details
3. Configure the plugin by clicking the "Configure Plugin" button according to Figure 12 and then submit it.
Figure 12 Configure plugin (Bean Shell Formatter) for the Plugin Template
4. Click the "Save" button to create a Plugin Template for formatting Datalists. (See Figure 13)
Figure 13 Save the new Plugin Template
5. Click the List - Plugin Template to open the design view of the Datalist builder. (See Figure 14)
Figure 14 Enter Datalist builder
6. Preview the Datalist before applying the "Plugin Template - Datalist Column Formatter" for comparing the effect of the Formatter. (See Figure 15)
Figure 15 Preview Datalist before plugin Template
7. In the Datalist builder go to properties of a column and navigate to General > Action Mapping > Formatter select "Plugin Template - Datalist Formatter" in the Formatter drop-down list. (See Figure 16)
Figure 16 Choose Plugin Template - Datalist Formatter for the "Formatter" field
8. Navigate to General > Action Mapping > Formatter > Plugin Template - Datalist Formatter and choose the template that has been created and press OK to apply it. (See Figure 17)
Figure 17 Select the created Plugin Template
9. Repeat steps 17 and 18 for as many columns as you want in the Datalist and then save it.
10. Preview the Datalist to view the intended effect of the template of Plugin Template - Datalist Formatter. (See Figure 18)
Figure 18 Preview the form after Plugin Template
11. Using one Plugin Template created, we can now apply the effect and format of the template to as many columns as we want in the Datalist builder increasing efficiency and reducing the chance of human error. (See Figure 19)
Figure 19 Columns with Plugin Template - Datalist Formatter applied
Steps to use the Plugin Template - Userview / Form permission:
1. Launch the app "Plugin Template Demo" and create a new template again on the Plugin Template Management Page by clicking the "New" button. (See Figure)
Figure Create a new Plugin Template
2. Fill up the Plugin Template Management Page accordingly and for the "Plugin" field choose any one of the formatter under Userview Permission or Form Permission. The is Admin is chosen for the Plugin field. (See Figure)
Figure Fill up the Plugin Template details
3. Click the "Configure Plugin" button and as there are no properties to configure for this plugin, submit the plugin and save the template by clicking the "Save" button.
4. The Permission Plugin Template created can be applied to enforce Permission rules to both Form and Userview.
1. The Permission plugin template created can be applied at the Userview itself or at the Userview Category level in the Userview using the Permission Control feature.
2. For applying the Permission plugin template at the Userview itself, go to the Userview Builder, select Settings, navigate to Configure Layout > Theme (DX Progressive Theme) > Configure Permission and choose Plugin Template - Permission for the Permission Type field. (See Figure)
Figure Choose Plugin Template - Permission for the "Permission Type" field
3. Navigate to Permission Type (Plugin Template - Permission), select the template you have created, and save the Userview by clicking the "Save" button. (See Figure)
Figure Select the created Plugin Template
4. For applying the Permission plugin template at the Userview Category level, go to the Userview Builder, select the permission icon of the category and choose Plugin Template - Permission for the Permission Type field. (See Figure)
Figure Choose Plugin Template - Permission for the "Permission Type" field
5. Navigate to Permission Type (Plugin Template - Permission), select Permission the template you have created, click the "OK" button, and save the Userview by clicking the "Save" button. (See Figure)
Figure Select the created Plugin Template
The Permission tab in the Advanced Tool ( Advanced Tools > Permission ) of the Userview Builder can utilize the Permission Plugin template created to provide the app designer with fine-grain control over managing the permissions of each individual element in the builder.
1. The Form Permission plugin template created can be applied at the Form or Form Section level using the Permission Control feature.
2. For applying the Form Permission plugin template to the Form itself, go to the Form Builder of the form, select Properties, navigate to Edit Form > Advanced, and choose Plugin Template - Permission for the Permission Type field. (See Figure)
Figure Choose Plugin Template - Permission for the "Permission" field
3. Navigate to Permission Type (Plugin Template - Permission), select the template you have created, and save the Userview by clicking the "Save" button. (See Figure)
Figure Select the created Plugin Template
4. For applying the Permission plugin template at the Form Section level, go to the Form Builder, select the Edit Section icon of the section, navigate to Edit Section > Data Binder > Advanced Options and choose Plugin Template - Permission for the Permission Type field. (See Figure)
Figure Choose Plugin Template - Permission for the "Permission" field
5. Navigate to Permission Type (Plugin Template - Permission), select the Permission template you have created, click the "OK" button, and save the Form by clicking the "Save" button. (See Figure)
Figure Select the created Plugin Template
The Permission tab in the Advanced Tool ( Advanced Tools > Permission ) of the Form Builder can utilize the Permission Plugin template created to provide the app designer with fine-grain control over managing the permissions of each individual element in the builder.
Steps to use the Plugin Template - Process Tool:
1. Launch the app "Plugin Template Demo" and create a new template again on the Plugin Template Management Page by clicking the "New" button. (See Figure)
Figure Create a new Plugin Template
2. Fill up the Plugin Template Management Page accordingly and for the "Plugin" field choose any one of the formatter under Process Tool. The Email Tool is chosen for the Plugin field in this Demo App. (See Figure)
Figure Fill up the Plugin Template details
3. Configure Email Tool by clicking the "Configure Plugin" button and then clicking the "Submit" button to save the configuration. Save the Plugin Template by clicking the "Save" button. (See Figure)
4. The Process Tool Template created can now be used to map the tool in your processes.
5. Go to the Processes tab and navigate to Map Tools to Plugins and map your Process Tools to the appropriate Process Tool Template created by clicking on the "Add/Edit Plugin" button. (See Figure)
Figure Map Tool to Plugin Template created
6. After clicking on the "Add/Edit Plugin" button, select Plugin Template - Process Tool. (See Figure)
Figure Choose Plugin Template - Process Tool
7. Select the Template created for your Process Tool and click submit to save your tool mapping. (See Figure)
Figure Select the created Plugin Template
Steps to use the Plugin Template - Form Options Binder:
1. Create a new Form called Country Categories from which the country select boxes of forms will populate its selections from. (See Figure)
Figure Fill up Form Details of Country Categories
2. Drag a text field into the Country Categories form, label it as Country, and make it a mandatory field.
3. Save the new form and click on Generate App to generate a CRUD for it.
4. Launch the userview, go to "Manage Country Categories" and create a few country records. (See Figure)
Figure Create New records for Country Categories
5. Create a new template again on the Plugin Template Management Page by clicking the "New" button. (See Figure)