HI,
-- I am using the 'oxf.fr.detail.new.service.uri' service for initial data of orbeon form, Its working when I pass the parameter as hardcoded, but not working with dynamic parameters.I am getting the parameter value from {xxf:get-request-parameter('<parameter-name>')} eg : <property as="xs:string" name="oxf.fr.detail.new.service.uri.*.*" value="<base-url>?id={xxf:get-request-parameter('id')}"\>
This is not working so then I used the <property as="xs:string"
name="oxf.fr.detail.new.service.passing-request-parameters.*.*"
value="id"/> I have tried with this both solution but unable to sent the dynamic id parameter for getting the data for initialise orbeon form. so how can I sent the dynamic parameter with 'oxf.fr.detail.new.service.uri' Thanks Jay 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]. |
Administrator
|
Hi Jay, XPath Value Template are not supported in `oxf.fr.detail.new.service.uri`. However, you can pass incoming request parameters the way you described by setting `oxf.fr.detail.new.service.passing-request-parameters.*.*`. This is also documented in the section of the documentation you were pointing to. You'll let me know if this works for you. -Alex On Wed, Oct 3, 2018 at 10:34 AM Jay Singh <[hidden email]> wrote:
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 |
Hi Alex Data initialise is working with static url, I have dynamic id parameter in url, I am getting the initial xml by id, But facing issue to send id parameter with URL. I gone through the document which you given url. but unable to set dynamic id parameter with url. How can I sent the dynamic id with url for initialise orbeon form. Thanks Jay 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]. |
Administrator
|
Hi Jay,
You would use properties similar to the one below, replacing, in the 2nd property, `http://httpbin.org/get` by the URL of your service. With this, if the `/new` page is called with `/new?id=42`, then the service will be called with `http://httpbin.org/get?id=42`. You'll let me know if this works for you. <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*" value="true"/> <property as="xs:string" name="oxf.fr.detail.new.service.uri.*.*" value="http://httpbin.org/get"/> <property as="xs:string" name="oxf.fr.detail.new.service.passing-request-parameters.*.*" value="id"/> -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 |
Administrator
|
Hi Jay, have you tried setting properties as in my example? If so, what the
request parameter properly passed to the service? -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 |
Hi Alex, Thank you Alex. I am able to send the parameter with oxf.fr.detail.new. Thanks, Jay 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]. |
Administrator
|
Perfect Jay, I'm glad forwarding the parameter to your service worked, and
thank you for the update. -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 |
Hi Alex Can I send the true/false value as dynamic value to oxf.fr.detail.new.service.enable service <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*" value="true"/> In this property I want to set the true/false value from parameter. Is it possible like below <property as="xs:boolean" name="oxf.fr.detail.new.service.enable.*.*"> xxf:get-request-parameter('enable') </property> enable is a parameter and value of enable will be true/false Thanks, Jay 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]. |
Administrator
|
Hi Jay, Some properties can be dynamic, i.e. use XPath, but not this one; so you've got to either enable or disable that feature. -Alex 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 |
Free forum by Nabble | Edit this page |