Wiki source code of Save
Hide last authors
| author | version | line-number | content | 
|---|---|---|---|
|                              | 
      2.2 | 1 | Actions of the //Save// type allow to enable or disable the "Saved" marker of the operation. This has the same effect as a button with the "Save" action in the form. The cache is mostly used so that the user can save an intermediate state and continue filling the form later. As a rule, a button with the action "Save" should be used. This action can be used when a process should be cached depending on a condition, for example. | 
|        | 
      2.1 | 2 | |
|        | 
      2.2 | 3 | == Action variables == | 
|        | 
      2.1 | 4 | |
|        | 
      2.2 | 5 | Actions of type //Save// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions. | 
|        | 
      2.1 | 6 | |
|        | 
      2.2 | 7 | === Standard action variables === | 
|        | 
      2.1 | 8 | |
|        | 
      2.2 | 9 | ; [%$<action name>.SUCCESS%] | 
| 10 | : Return whether action was successfully executed. Returns Boolean (true/false). | ||
| 11 | ; [%$<action name>.RESULT%] | ||
| 12 | : Return all results provided by the action in structured form. | ||
|        | 
      2.1 | 13 | |
|        | 
      2.2 | 14 | ; [%$<action name>.ERROR_CODE%] | 
| 15 | : The error code thrown in case of an error in the action. Empty if no error occurred. | ||
| 16 | ; [%$<action name>.ERROR_MESSAGE%] | ||
| 17 | : The thrown error message in the action's error case. Empty if no error occurred. |