Vinod
Vinod

Reputation: 2311

How to get form values on click of save button in orbeon

I have created a proxy portlet and deployed on life Ray portal, everything is working fine as expected. Now on click of save button I need get the form inputs and save it in db. As of now I haven't created a database layer for orbeon. On click of save button I need to hit the some url with inputs as parameters.. I have the following questions

1) Where will I get form inputs on click of save button(file name) ? 2) can it possible to pass the form inputs to jsp or java page?
3) if I want to disable some buttons in form runner, how can I do that? Any documentation that from where do I need to start for customization?

Upvotes: 0

Views: 734

Answers (1)

Inanda Menezes
Inanda Menezes

Reputation: 1804

You can use oxf.fr.detail.buttons.. property to choose buttons that you want to show/hide.

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner#TOC-Buttons-on-the-detail-page

To post to a external service, you should use 'send' button:

       <property 
                 as="xs:string"        
              name="oxf.fr.detail.buttons.testapp.testform" 
            value="save-draft send"/> 



        <property
  as="xs:string"
  name="oxf.fr.detail.process.send.testapp.testform"
  value='require-valid
         then send("http://localhost:8081/context/yourservice")
         then navigate("/success")
         recover navigate("/failure")'/>

Note: Use oxf.fr.detail.buttons.*.* and oxf.fr.detail.process.send.*.* if you want it for all of your forms and apps.

The following links have information to help you to change the actions used for the buttons:

http://blog.orbeon.com/2013/04/more-powerful-buttons.html

https://github.com/orbeon/orbeon-forms/wiki/Form-Runner-~-Buttons-and-Processes

Upvotes: 2

Related Questions