Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8163027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:55:34+00:00 2026-06-06T18:55:34+00:00

How can I pass a request parameter to fr-workflow-send-submission in persistence-model.xml? For example if

  • 0

How can I pass a request parameter to “fr-workflow-send-submission” in “persistence-model.xml”?
For example if I open a form with :

…/orbeon..?myRequestParameter=myRequestParameterValue

and than pass myRequestParameter to “oxf.fr.detail.send.success.uri..“

I tried to do the following :

    <xforms:model id="fr-persistence-model"....

                                  ....

            <xxforms:variable name="parameters" value="xxforms:instance('fr-parameters- instance')" as="element()"/>
            <xxforms:variable name="app" value="$parameters/app" as="xs:string"/>
            <xxforms:variable name="form" value="$parameters/form" as="xs:string"/>
            <xxforms:variable name="document" select="$parameters/document"/>
            <xxforms:variable name="mode" select="$parameters/mode"/>

                                  ....

            <xxforms:variable name="myVariable"/>

                                  ....

            <xforms:action ev:event="xforms-model-construct-done" if="$app != '*' and $form != '*'">

                                  ....

                    <xforms:setvalue ref="$myVariable" value="xxforms:get-request-parameter('myRequestParameter')">

                                  ....

           <xforms:submission id="fr-workflow-send-submission"
                  resource="{$workflow-success-uri}?myRequestParameter={$myVariable}"
                  relevant="{xxforms:property(string-join(('oxf.fr.detail.send.success.prune', $app, $form), '.'))}"
                  validate="false" method="{$workflow-success-method}"
                  serialization="{if ($workflow-success-method = 'get') then 'none' else 'application/xml'}"
                  ref="if (instance('fr-workflow-send-instance') != '') then instance('fr-workflow-send-instance') else xxforms:instance('fr-form-instance')"
                  replace="all"/>

                                  ....

and the variable “myVariable” is always emtpy.

I also tried to do an insert on “xforms-model-construct-done” event :

                                      ....
                  <xxforms:variable name="parameters" value="xxforms:instance('fr-parameters- instance')" as="element()"/>
                  <xxforms:variable name="myVariable" select="$parameters/myRequestParameter"/> 

                                      ....
//on xforms-model-construct-done
        <xforms:action>
            <xxforms:variable name="myRequestParameter-name" select="'myRequestParameter'"/>
            <xxforms:variable name="myRequestParameter-value" select="xxforms:get-request-parameter($myRequestParameter-name)"/>
            <xforms:insert context="instance('fr-parameters- instance')" origin="xxforms:element($myRequestParameter-name, $myRequestParameter-value)"/>
        </xforms:action>

                                      ....

but “myVariable” is still empty.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T18:55:36+00:00Added an answer on June 6, 2026 at 6:55 pm

    You can’t use <xforms:setvalue> on a variable, and when you define a variable, you need to also say what its value is with <xxforms:variable name="myVariable" value="xpath"/>, or if using a recent build (and the upcoming Orbeon Forms 4.0): <xforms:var name="myVariable" value="xpath"/>, as variables are making their way into XForms 2.0.

    Here what you want to have is an instance. Try to replace:

    1. <xxforms:variable name="myVariable"/> with <xforms:instance id="myInstance"><instance></xforms:instance>
    2. $myVariable with instance('myInstance')
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I pass in the current datetime parameter to a SOAP request? I
When I submit a form in HTML, I can pass a parameter multiple times,
Simple task like make AJAX request , pass one parameter and return result, can
In Fiddler, I can pass in a request and get a response 500. Fine
How can I retrieve the CSRF token to pass with a JSON request? I
in MongoDb I can pass a predicate to an queryable instance for example DataBase.GetCollection<BsonDocument>(entity)
I know that I can pass a string as the second parameter to the
I use in my Ajax.Request my jsp. (Prototype) Somehow I can pass extra parameters
I need to pass a request parameter from one JSP to another JSP page
Mootools Ajax class has a onComplete parameter whereby you can pass a function name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.