"get-request-attribute" is not returning the value.

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

"get-request-attribute" is not returning the value.

sanjeet
<xforms:action ev:event="xforms-model-construct-done">

        <xforms:setvalue ref="instance('test-intance')/testpath1"
value="concat(xxforms:get-request-parameter('param1'),'')" />
        <xforms:setvalue ref=&quot;instance('test-intance')/param2&quot;
value=&quot;concat(xxforms:&lt;b>get-request-attribute*('param2'),'')" />
               
        <xforms:send submission="load-data-submission" />
               
</xforms:action>

Hi,

In the above code the value of *param2* is not returning using
"*get-request-attribute*" . *How to get the value of param2 ?*

Note : The value of "param2" attribute has been set in one of the /Filter/.
The param1 is working good with "get-request-parameter".


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: "get-request-attribute" is not returning the value.

Alessandro  Vernet
Administrator
Hi Sanjeet,

I'm really unable to decipher the code you have in your message because it
has been all mixed up including quotes replaced by:



It is possible that you have a syntax error in there, but I can't tell.
Could you re-post that code as a file attachement instead?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: "get-request-attribute" is not returning the value.

Alessandro  Vernet
Administrator
Sanjeet, escaping is hard: I thought I had used the `raw` tag in my previous
message, but apparently someone "ate" its content :). So if you still have
this issue, could you please attach a file with your snippet?

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: "get-request-attribute" is not returning the value.

Naveen
Hi Alex,

Here is the source code which you wanted from Sanjeet. We are unable to read
request attribute. <http://discuss.orbeon.com/file/t375630/code.gif>

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: "get-request-attribute" is not returning the value.

Alessandro  Vernet
Administrator
Hi Naveen,

Thank you for sharing the source. I'm curious as to why you are doing a
`concat(xxforms:get-request-attribute('…'), '')`? The `concat()` shouldn't
hurt, but shouldn't be needed either; do you know why you or Sanjeet put it
there?

As to why it works for `param1` but not `param2`, I don't know. Could you
maybe try adding an `<xf:message
value="xxforms:get-request-attribute('param2')"/>`; is the value of `param2`
displayed? If not, what if you try doing the same with `param1`?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: "get-request-attribute" is not returning the value.

Alessandro  Vernet
Administrator
Hi Naveen,

Is this still a current issue? If so, did you get a chance to try to display
the value of `param2` with an `<xf:message>` as suggested in my previous
message?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet