...
|
|
---|---|
onSubmit.type | Must be |
onSubmit.connection | name of the SQL connection - see SQL connections |
onSubmit.query | The SQL query you want to execute. The form values are accessible via the form field names as handlebars. If required, you can use Field Processors to manipulate the data before executing the query. |
onSubmit.fieldProcessor | |
onSubmit.conditions | See https://portrait.atlassian.net/wiki/spaces/PA7/pages/1029112649/Post+Processing+onSubmit#Conditions |
onSubmit.source | Used for Mode UPDATE details see https://portrait.atlassian.net/wiki/spaces/PA7/pages/1029112649/Post+Processing+onSubmit#Mode-Update-(new-for-SQL-and-Python) and to automatically reindex a given source |
Example
Excerpt | ||
---|---|---|
| ||
In this given example, the form-data will be inserted into the table The FieldProcessors can either be used to format fields or as a fallback in case of an optional field in the form. If not supplied the Query would fail as there would be no valid parameter :Name if not set previously. With the given FieldProcessor the fallback is an empty String. |
Variables
The query can be customized with variables. Available parameters see https://portrait.atlassian.net/wiki/x/DQBwPQ