Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
English |
---|
We would like to run multiple store binders plugins in a single store binder selection. This would open up more use cases with the ability to store form data into multiple destinations without the need for relying on other approaches such as JSON Tool or SOAP Tool. |
...
The following of this tutorial is prepared with Joget Source Code version 7.0.0. Please refer to Guideline for developing Developing a pluginPlugin for other platform commands.
...
Then, let upload the plugin jar to Manage Plugins. After upload, the jar file, double-check the plugin is uploaded and activated correctly.
Let create a form to create and update user to dir_user table.
Then, configure the store binder of the section to Default Form Binder and JDBC Binder.
Code Block | ||||
---|---|---|---|---|
| ||||
select username from dir_user where username = {id} |
Code Block | ||||
---|---|---|---|---|
| ||||
insert into dir_user (id, username, firstName, lastName, email, active) values ({id}, {id}, {firstName}, {lastName}, {email}, 1) |
...
Info | ||
---|---|---|
| ||
{uuid} can be used to generate a unique id |
Code Block | ||||
---|---|---|---|---|
| ||||
update dir_user set firstName = {firstName}, lastName = {lastName}, email = {email} where username = {id} |
...
Code Block | ||||
---|---|---|---|---|
| ||||
delete from TABLE_NAME where id = {id} |
Now, let test to add a user.
Check the user is created in dir_user table.
It works! Please remember to test the other features of the plugin as well.
...