Form->Database SQL Query SELECT boxes
Confluence User - 26 Sep, 2024
I use the "Database SQL query" (Database SQL Query) ( formerly known as JDBC Form Binder) for form Data. I have 2 questions:
- In "load data from" it shows a "SQL SELECT query" box. Joget knowledge base (Database SQL Query) has an example that uses where does the parameter (?) value come from? With a cursory search I saw that it is related to the URL parameter of the web page (UI menu) to which the form will belong. Is this right? I haven't found any documentation about. Also the parameter name must be id. Otherwise it is not recognized!
SELECT * FROM app_fd_table WHERE id = ?
- In the "Save Data To" it shows a "SQL SELECT query" box. Joget knowledge base (Database SQL Query) has an example that uses
SELECT * FROM app_fd_table WHERE id={id}
The tooltip comment (the blue ! in the label) says "Used to decide an insert or update operation. Use syntax like {field_id} in query to inject submitted form data.". I don't understand how this is used? I assume that when there is {id} then it is in edit mode otherwise it is in add new record mode so the fields are empty. Am I right?
forms;userviews