Wiki source code of Server-Attribut setzen


Show last authors
1 {{figure image="set_server_attributes_en.png" clear="h1"}}
2 User interface for actions of type //Set server attribute//.
3 {{/figure}}
4
5 Actions of type //Set server attribute// allow to store data in the form of key-value-pairent on the form record, available only on the server (not in the browser). Saved data can be read later using variables.
6
7 == Parameters ==
8
9 === Setting attributes on the form record ===
10
11 ; Attribute name
12 : Name of the attribute which should be set.
13 ; Value
14 : Assigned value of the attribute
15 ; Set form values?
16 : This setting exists for compatibility reasons and should not be used. Instead, the [[Change Form Values>>doc:ChangeFormValues]] action should be used.
17
18 == Action variables ==
19
20 Actions of type //Set server attribute// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
21
22 === Standard action variables ===
23
24 ; [%$<action name>.SUCCESS%]
25 : Return whether action was successfully executed. Returns Boolean (true/false).
26 ; [%$<action name>.RESULT%]
27 : Return all results provided by the action in structured form.
28
29 ; [%$<action name>.ERROR_CODE%]
30 : The error code thrown in case of an error in the action. Empty if no error occurred.
31 ; [%$<action name>.ERROR_MESSAGE%]
32 : The thrown error message in the action's error case. Empty if no error occurred.