Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Database SQL Query comes standard in Joget v6 and DX. If you are using Joget v5, you can download the JDBC Binders from Joget Marketplace.
Figure 1: Database SQL Query selected as Load Data From & Save Data To
...
Name | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Datasource |
By selecting Default Datasource, the database your Joget is currently using will be selected. (See Figure 2). | |||||||||||||||||||||
Custom JDBC Driver | Custom JDBC Driver. This field is required when Custom Datasource is selected in Datasource above. Example: | |||||||||||||||||||||
Custom JDBC URL | Custom JDBC URL. This field is required when Custom Datasource is selected in Datasource above. Example: | |||||||||||||||||||||
Custom JDBC Username | Custom JDBC Username. This field is required when Custom Datasource is selected in Datasource above. | |||||||||||||||||||||
Custom JDBC Password | Custom JDBC Password. This field is required when Custom Datasource is selected in Datasource above.
| |||||||||||||||||||||
SQL SELECT Query for Load Data | The SQL query specific to your database type (MySQL, MSSQL, Oracle, etc.). Use question mark ? in your query to represent the primary key or foreign key.
| |||||||||||||||||||||
Handling for field workflow variable? | Click to select if you are using workflow variables mapping in your form elements. Not applicable for grid elements. | |||||||||||||||||||||
Handling for uploaded files? | Click to select if you are using file or image attachments in your form elements | |||||||||||||||||||||
Form to store uploaded files | . Select form to store uploaded files only if you are using form grid or spreadsheet. |
...
Name | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Datasource |
By selecting Default Datasource, the database your Joget is currently using will be selected. (See Figure 3). | ||||||||||||||||||||
Custom JDBC Driver | Custom JDBC Driver. This field is required when Custom Datasource is selected in Datasource above. Example: | ||||||||||||||||||||
Custom JDBC URL | Custom JDBC URL. This field is required when Custom Datasource is selected in Datasource above. Example: | ||||||||||||||||||||
Custom JDBC Username | Custom JDBC Username. This field is required when Custom Datasource is selected in Datasource above. | ||||||||||||||||||||
Custom JDBC Password | Custom JDBC Password. This field is required when Custom Datasource is selected in Datasource above.
| ||||||||||||||||||||
SQL SELECT Query for store binder | The SQL query specific to your database type (MySQL, MSSQL, Oracle, etc.). Use syntax like {field_id} in query to inject submitted form data.
Note: If you use JDBC in a form grid or spreadsheet for load or save binder, be advised the SQL syntax is different from form load or save binder. Kindly download and view the sample app for JDBC in a form grid or spreadsheet. | ||||||||||||||||||||
SQL INSERT Query | Use syntax like curly brackets {field_id} in query to inject submitted form data.
You can use {uuid} to tell Joget to create a random unique id or a "Universally unique identifier". Example:
For JDBC SQL INSERT in a grid, use "{foreignKey}" syntax to populate the parent id into the child table foreign key value, as follows:
| ||||||||||||||||||||
SQL UPDATE Query | Use syntax like curly brackets {field_id} in query to inject submitted form data.
| ||||||||||||||||||||
SQL DELETE Query | SQL statement to delete form data records in Datalist/Grid element. Use syntax like curly brackets {id} in query to inject form data primary key value.
| ||||||||||||||||||||
Handling for field workflow variable? | Click the checkbox if you are using workflow variables mapping in your form elements. The JDBC binder will copy the field value to the workflow variable when you submit the form if the form is mapped to a process. Not applicable to grid elements. | ||||||||||||||||||||
Handling for uploaded files? | Click the checkbox if you are using file or image attachments in your form elements. The JDBC binder will save your file or image attachment into the ".\wflow" folder when you save the form. Select form to store uploaded files only if you are using a form grid or spreadsheet. | ||||||||||||||||||||
Form to store uploaded files | Select form to store uploaded files only if you are using form grid or spreadsheet. |
...