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
cf58b259
Commit
cf58b259
authored
Oct 15, 2019
by
Carsten Rose
Browse files
Merge branch 'marcCorrectDocumentationFillStoreVar' into 'master'
Manual.rst: Add '!' to fillStoreVar Query See merge request
!183
parents
8c0f84b5
a10e61d2
Pipeline
#2483
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Documentation/Manual.rst
View file @
cf58b259
...
...
@@ -1937,7 +1937,7 @@ Store: *VARS* - V
The directive `fillStoreVar` will fill the store VARS with custom values. Existing Store VARS values will be merged together with them.
E.g.: ::
fillStoreVar = {{SELECT p.name, p.email FROM Person AS p WHERE p.id={{pId:S}} }}
fillStoreVar = {{
!
SELECT p.name, p.email FROM Person AS p WHERE p.id={{pId:S}} }}
* After filling the store, the values can be retrieved via `{{name:V}}` and `{{email:V}}`.
* Be careful by specifying general purpose variables like `id`, `r`, `pageId` and so on. This might conflict with existing variables.
...
...
@@ -4704,7 +4704,7 @@ On `Form.parameter` define a `fillStoreVar` query with a column name equal to a
Example: ::
FormElement.name = technicalContact
Form.parameter.fillStoreVar = {{SELECT CONCAT(p.firstName, ' ', p.name) AS technicalContact FROM Person AS p WHERE p.account='{{feUser:T}}' }}
Form.parameter.fillStoreVar = {{
!
SELECT CONCAT(p.firstName, ' ', p.name) AS technicalContact FROM Person AS p WHERE p.account='{{feUser:T}}' }}
What we use here is the default STORE prio FSRVD. If the form loads with r=0, 'F', 'S' and 'R' are empty. 'V' is filled.
If r>0, than 'F' and 'S' are empty and 'R' is filled.
...
...
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