...
A plugin named "Database Query Process Tool" is also bundled together as a utility for loading records.
...
| Name | Description |
|---|
| Iterator Method | - Method to load the dataset.
- Choose to load records either by using a Process Tool or from Datalist
|
| List | - Choose list to retrieve dataset from.
- This option is needed when "Iterator Method" is set to "Datalist".
|
| Iterator Process Tool | |
| Record ID | Specify which column to be used as record ID / primary key from the dataset. | Code Block |
|---|
| language | java |
|---|
| title | Example |
|---|
| linenumbers | true |
|---|
| For example:- id
|
Execute Process Tool
| Name | Description |
|---|
| Process Tool | - With the dataset loaded, the plugin will iterate through each record and set the record or assignment as the context, and execute the process tool defined here.
- In the plugin configuration, when using hash variable, instead of using # to encapsulate, please replace # with $$ in your plugin for parsing to take place in the correct context. For examples:-
Assignment mode, use $$form.request.name$$. | Code Block |
|---|
| language | java |
|---|
| title | Example |
|---|
| linenumbers | true |
|---|
| $$form.request.name$$ |
Record mode, use $$form.request.name[@recordId@]$$. | Code Block |
|---|
| language | java |
|---|
| title | Example |
|---|
| linenumbers | true |
|---|
| $$form.request.name[@recordId@]$$ |
Retrieve values from iterator's dataset, use {columnName}. | Code Block |
|---|
| language | java |
|---|
| title | Example |
|---|
| linenumbers | true |
|---|
| {id} |
| Code Block |
|---|
| language | java |
|---|
| title | Example |
|---|
| linenumbers | true |
|---|
| {name} |
|
...