orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 221 forks source link

xf:submission fails to access event parameter passed by xf:send #2795

Open avernet opened 8 years ago

avernet commented 8 years ago

In Form Builder, paste the content of scratch.txt in a new form, click Test, click *Submit", and notice that in the httpbin output, the value of my-parameter is empty, while I would expect it to be 42.

I hit this while looking into a related (same?) issue reported by Chunyu on the mailing list.

ebruchez commented 8 years ago

This has the same cause as #936. Event parameters are not available in the second phase a of a two-phase submission (that is, a submission with replace="all"). Workaround is to store the information somewhere (a separate instance) during xforms-submit, and access it from there in the resource or other AVTs.

ebruchez commented 8 years ago

How to fix this?

ebruchez commented 1 year ago

Entered #5832 which when fixed would address this.