File tree 3 files changed +8
-5
lines changed
form-builder/jvm/src/main/resources/forms/orbeon/builder/form
form-runner/jvm/src/main/resources/apps/fr/includes/persistence
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 957
957
< xf:send submission ="fr-get-document-submission ">
958
958
< xf:property name ="data-or-draft " value ="'data' "/>
959
959
< xf:property name ="document-url " value ="event('template-url') "/>
960
- < xf:property name ="for " value ="'load-template' " xxf:tunnel ="true "/>
960
+ < xf:property name ="for " value ="'load-template' " xxf:tunnel ="true "/>
961
961
<!-- Make `title` and `description` available downstream
962
962
https://github.com/orbeon/orbeon-forms/issues/6745 -->
963
963
< xf:property name ="title " value ="event('title') " xxf:tunnel ="true "/>
Original file line number Diff line number Diff line change 158
158
</xf : action >
159
159
160
160
<!-- Mode != "new": annotate loaded data and copy it to fb-form-instance -->
161
- <xf : action ev : event =" fb-data-ready" if =" not($mode = 'new')" >
161
+ <xf : action event =" fb-data-ready" if =" not($mode = 'new')" >
162
162
163
163
<xf : dispatch name =" fb-load-toolbox-action" targetid =" fb-toolbox-model" >
164
164
<xf : property name =" deannotate" value =" false()" />
172
172
</xf : action >
173
173
174
174
<!-- Mode = "new": just annotate template -->
175
- <xf : action ev : event =" fb-data-ready" if =" $mode = 'new'" >
175
+ <xf : action event =" fb-data-ready" if =" $mode = 'new'" >
176
176
177
177
<!-- Point to template -->
178
178
<xf : var
251
251
<xf : property name =" data" value =" $template" />
252
252
</xf : dispatch >
253
253
254
- <!-- Free fr-form-instance -->
254
+ <!-- Free ` fr-form-instance` -->
255
255
<xf : insert
256
256
ref =" instance('fr-form-instance')"
257
257
origin =" xf:element('_')" />
Original file line number Diff line number Diff line change 395
395
396
396
</xf : action >
397
397
398
+ <!-- fr-load-document-handle-drafts($refresh-needed as xs:boolean) -->
398
399
<xf : action event =" fr-load-document-handle-drafts" >
400
+
399
401
<!-- Load document with the provided id from persistence layer -->
400
402
<xf : message level =" xxf:log-debug" >Loading data by id from persistence layer: <xf : output value =" $document" /></xf : message >
401
403
<xf : var name =" draft-requested" value =" xxf:get-request-parameter('draft') = 'true'" />
837
839
<xf : dispatch
838
840
if =" event('load-document') = true()"
839
841
name =" fr-load-document-handle-drafts"
840
- target =" fr-persistence-model" >
842
+ targetid =" fr-persistence-model" >
841
843
<xf : property name =" refresh-needed" value =" event('refresh-needed')" />
842
844
</xf : dispatch >
843
845
</xf : action >
855
857
replace =" none" />
856
858
857
859
<!-- Get document -->
860
+ <!-- fr-get-document-submission($document-url as xs:string?, $data-or-draft as xs:string?) -->
858
861
<xf : submission
859
862
xmlns : frp =" java:org.orbeon.oxf.fr.FormRunnerPersistenceJava"
860
863
You can’t perform that action at this time.
0 commit comments