From version 1.1
edited by jdr
on 29.07.2021, 14:56
Change comment: There is no comment for this version
To version 1.6
edited by awa
on 24.03.2023, 15:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.jdr
1 +XWiki.awa
Content
... ... @@ -1,19 +1,18 @@
1 -{{figure image="export_persistence_en.png"}}
1 +{{figure image="export_persistence_en.png" width="400" clear="h1"}}
2 2  User interface for actions of type //Export to persistence file//.
3 3  {{/figure}}
4 4  
5 -Action of type //Export to persistence file// allows to provide the data of an operation as a persisted structure. This can be reloaded later to restore the form. This action and javascript code for loading the persisted values can thus be used to implement saving form data.
5 +Action of type //Export to persistence file// allows to provide the data of an form record as a persisted structure. This can be reloaded later to restore the form. This action and javascript code for loading the persisted values can thus be used to implement saving form data.
6 6  
7 7  == Parameters ==
8 8  
9 -=== Storage of the generated files ===
9 +=== Storage options for the created files ===
10 10  
11 -; Name of the output file
12 -: File name under which the exported process should be saved.
11 +; Output file name
12 +: Name of the output file.
13 +; Attach file to form record
14 +: If this option is selected, files created in this action will be attached to the form record. Otherwise, they are only available for other actions within the workflow processing in the same processing chain.
13 13  
14 -; Append to operation
15 -: Specifies whether the generated output file should be attached to the operation.
16 -
17 17  == Action variables ==
18 18  
19 19  Actions of type //Export to persistence file// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
... ... @@ -49,7 +49,8 @@
49 49   $('.xm-form input').not('[name=fcp_persistence]').attr('disabled', "disabled");
50 50   $('.xm-form textarea').attr('disabled', "disabled");
51 51   $('.xm-form select').attr('disabled', "disabled");
52 - $('.xm-form').submit();
51 + xm_validator.disable();
52 + $('.xm-form').trigger("submit");
53 53  });
54 54  $('[xn="fcp_persistence"] .img-uploaded-preview').visible(false);
55 55  {{/code}}