Administrator
|
Hi Iñigo,
Could you clarify what you mean by "send the form data through a link instead of modifying the button processes of the forms broker". Send the form data from Orbeon Forms (I imagine) to where? What is the link you're referring to? What is the downside for you of using a process tied to a button? -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,
What I want to say is that I want to make the same functionality as this property with link created with a explanatory text: <property as = "xs: string" name = "oxf.fr.detail.process.clear.*.*" value = ' save then send (uri="http://localhost:8181/o/service/services/clear", method="POST", content= "metadata", replace = "all") ' /> The drawback to using the process linked to the button is that we want to be able to customize it and place it in different areas of the form. Otherwise the button would always appear in the bottom of the page. Iñigo. -- 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]. |
Administrator
|
Hi Iñigo,
Got it, then: 1. Let's assume your button is named `my-button` (if you look at the source of the form, the id of the control will be `my-button-control`). 2. Add the first property below and put the attached `model.xml` in your `WEB-INF/resources/forms/resources/model.xml`. Note the listener in the model that upon click (`DOMActivate`) on the button runs `my-process`. 3. Finally declare your process (here `my-process`) with the second property below. <property as="xs:anyURI" name="oxf.fr.detail.model.custom.*.*" value="oxf:/forms/resources/model.xml"/> <property as="xs:string" name="oxf.fr.detail.process.my-process.*.*"> success-message(message = "42") </property> You'll let me know if this works for you. -Alex model.xml <http://discuss.orbeon.com/file/t119778/model.xml> ----- -- 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,
It works perfectly, that's what I was looking for. Thank you very much. Iñigo. -- 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]. |
Administrator
|
Excellent Iñigo, I'm glad this way of running a process from a button inside
the form works for you, 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 |
Free forum by Nabble | Edit this page |