Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
English |
---|
Choose Bean Shell Form Binder as the Form's Store Binder. |
Key in the following code.
Code Block |
---|
import org.joget.apps.app.service.AppUtil; import org.joget.apps.form.model.Element; import org.joget.apps.form.model.FormRowSet; import org.joget.apps.form.model.FormData; import org.joget.apps.form.lib.WorkflowFormBinder; import org.joget.commons.util.LogUtil; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; rows.get(0).setProperty("field2", rows.get(0).getProperty("field1")); new WorkflowFormBinder().store(element, rows, formData); |
In the code above, it will copy the value from form element with id "field1" into "field2".
...