Custom Button creation and Usage

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Custom Button creation and Usage

Madhav1066
Hi Erik ,
          I am working on Custom button creation and usage .
I have gone through :
 http://discuss.orbeon.com/Calling-a-processor-before-sending-form-data-td4658618.html

I am creating forms in Form Orbeon War & in that forms i have to enable my custom buttons .
When i click on those buttons , the form data has to be submitted to the Controller which we specify in SEND function.

My query is :

i placed below content in properties-local.xml ,

   <property
                  as="xs:string"
                  name="oxf.fr.detail.process.button-sql.Test.*"
                  value='require-valid
                  then validate
                  then confirm(message="Are you sure you want to submit your form?")
                  then suspend
                  then send("URL TO RESOURCE")
                  then success-message(message = "Your form has been saved!")
                  recover error-message(message = "There was an error saving the data!")'/>

Now how can i use this above content while creating form so that my custom button should be created by above content .
Please give sample code if available

Regards,
Madhav