Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
34be39d7
Commit
34be39d7
authored
Sep 30, 2019
by
Carsten Rose
Browse files
Update description MultiForm
parent
5a6cb89f
Pipeline
#2434
passed with stages
in 3 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Documentation/Manual.rst
View file @
34be39d7
...
@@ -4353,16 +4353,32 @@ Action
...
@@ -4353,16 +4353,32 @@ Action
Multi Form
Multi Form
----------
----------
`Multi Forms` are like regular forms, but work on 'n' records at the same time.
`Multi Forms` are like a regular with the difference that the shown FormElements are repeated for each selected record
(defined by 'multiformSql').
Image a form with 3 native FormElements, a statement `multiFormSql={{!SELECT p.id AS _id FROM Person AS p}}` and 20 records
The Form is shown as a table.
in table `Person`: QFQ will show a form with a table of 3 columns and 20 rows with FormElements, arranged in a table.
* multiFormSql:
A uniq column 'id' or '_id' is required. Columns
* multiFormSql:
Selects the primary record where the defined FormElements will work on.
* A uniq column 'id' or '_id' (not shown) is mandatory and has to reflect an existing record id in table `primary table`.
* Additional columns, defined in multiFormSql, will be shown in the same line, before the FormElements.
Simple mode
Simple
======
* The FormElement.name represents a column of the given primary table.
* It's not possible to create new records.
* Only existing records can be selected and edited in this mode.
* Per multiFormSql row, the STORE_RECORD is filled with the whole record of the primary table, defined by `multiFormSql.id`.
* The existing values of such FormElements are automatically loaded.
* No further definition is required.
Advanced
========
* The FormElement.name is not a column of the primary table.
* The insert/update/delete of each non-primary table record has to be manually defined.
.. _multiple-languages:
.. _multiple-languages:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment