How to add/remove control buttons from the form builder/runner?

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

How to add/remove control buttons from the form builder/runner?

Simon Goodchild
Hello all,

I need to be able to add in some extra buttons to the bottom of a form built with form builder (where Save, Cancel, etc. are). I've looked through all the front-end code and documentation that I can find, but haven't found any clues as to how I would do this. I'm therefore assuming it's something in the back-end java classes that needs to be customised, but can anyone point me towards the specific classes that would need to be updated?

Many thanks,

Simon


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to add/remove control buttons from the form builder/runner?

Louis Ratzesberger

Simon,

Did you find this page about configuring Form Runner properties?
They can be configured on a per-form basis and various buttons can
be configured there:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner

e,g.:

<property as="xs:string"  name="oxf.fr.detail.buttons.*.*"  
value="close clear print pdf save submit"/>

But creating buttons outside that set likely will require changing
the source code, but probably the "epilogue" and other processing
scripts.  That is, you likely would not need custom Java classes.

Cheers,
--Hank

Quoting Simon Goodchild <[hidden email]>:

> Hello all,
>
> I need to be able to add in some extra buttons to the bottom of a form built
> with form builder (where Save, Cancel, etc. are). I've looked through all
> the front-end code and documentation that I can find, but haven't found any
> clues as to how I would do this. I'm therefore assuming it's something in
> the back-end java classes that needs to be customised, but can anyone point
> me towards the specific classes that would need to be updated?
>
> Many thanks,
>
> Simon
>


--
Hank Ratzesberger
[hidden email]



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: How to add/remove control buttons from the form builder/runner?

Simon Goodchild
Thanks Hank, that was just what I needed to know. I had trawled through loads of the lower level config files but somehow managed to miss this obvious one! I must've been expecting it to be harder to do :-)

For anyone else that it looking to add a custom button, rather than messing with the code I cheated slightly and just overrode the functionality of one of the standard buttons that I didn't need. You can re-map the functionality in the buttons.xsl file.


Simon

On 28 April 2010 17:44, Louis Ratzesberger <[hidden email]> wrote:

Simon,

Did you find this page about configuring Form Runner properties?
They can be configured on a per-form basis and various buttons can
be configured there:

http://wiki.orbeon.com/forms/doc/developer-guide/configuration-properties/configuration-properties-form-runner

e,g.:

<property as="xs:string"  name="oxf.fr.detail.buttons.*.*" value="close clear print pdf save submit"/>

But creating buttons outside that set likely will require changing
the source code, but probably the "epilogue" and other processing
scripts.  That is, you likely would not need custom Java classes.

Cheers,
--Hank


Quoting Simon Goodchild <[hidden email]>:

Hello all,

I need to be able to add in some extra buttons to the bottom of a form built
with form builder (where Save, Cancel, etc. are). I've looked through all
the front-end code and documentation that I can find, but haven't found any
clues as to how I would do this. I'm therefore assuming it's something in
the back-end java classes that needs to be customised, but can anyone point
me towards the specific classes that would need to be updated?

Many thanks,

Simon




--
Hank Ratzesberger
[hidden email]



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: How to add/remove control buttons from the form builder/runner?

apgoar
Hey Simon.

I'm trying to do exactly what you were trying to pull off. If you don't mind, can you post just a little more detail on what you did in buttons.xsl to add custom functionality? I assume you implemented a custom action behind your new button fuctionality? Do you mind posting some of the code of the buttons.xsl changes you made?

Thanks,

Andy