Re-usage of "save" button features for custom save

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

Re-usage of "save" button features for custom save

bgawel
Hi,

I programmed my custom save button which is displayed in Form Runner (<fr:button>).
The standard "save" button brings to Form Runner some extra features like:
- the "Document saved successfully!" message having a document successfully saved,
- the popup with the message "There are validation errors. Please retry once all fields have been properly filled-out" after clicking on "Save" button and in case of validation error.

Is there any way to use these features with a custom button?

--
Kind Regards,
 Bartek Gawel
Reply | Threaded
Open this post in threaded view
|

Re: Re-usage of "save" button features for custom save

Erik Bruchez
Administrator
Bartek,

These behaviors are really specific to the built-in Save button at
this point, and not easily reusable at this point, unfortunately. They
are mostly implemented here:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/includes/persistence/persistence-model.xml

In particular, see the fr-save-action.

-Erik

On Tue, Aug 7, 2012 at 8:35 AM, bgawel
<[hidden email]> wrote:

> Hi,
>
> I programmed my custom save button which is displayed in Form Runner
> (<fr:button>).
> The standard "save" button brings to Form Runner some extra features like:
> - the "Document saved successfully!" message having a document successfully
> saved,
> - the popup with the message "There are validation errors. Please retry once
> all fields have been properly filled-out" after clicking on "Save" button
> and in case of validation error.
>
> Is there any way to use these features with a custom button?
>
> --
> Kind Regards,
>  Bartek Gawel
>
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Re-usage-of-save-button-features-for-custom-save-tp4655589.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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