How to add a piece of javascript when saving a form successfully in form runner portlet?

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

How to add a piece of javascript when saving a form successfully in form runner portlet?

bpmf

Hi, all

I'm integrateing the form runner proxy portlet with other portlets on Liferay. When a form is saved successfully,  I want the form runner to send a event to other portlets  using javascript. But I didn't find the place to add the javascript, can anyone help to give me some clues?


--
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 a piece of javascript when saving a form successfully in form runner portlet?

Erik Bruchez
Administrator
When saving has succeeded, an event, fr-data-save-done, is dispatched
to fr-form-model.

So you could update your form's code to include an event handler like
this somewhere under the main <xforms:model> element:

<xxforms:script ev:event="fr-data-save-done">
  your JavaScript here
</xxforms:script>

-Erik

On Mon, Aug 20, 2012 at 8:54 AM, bpmf <[hidden email]> wrote:

>
> Hi, all
>
> I'm integrateing the form runner proxy portlet with other portlets on
> Liferay. When a form is saved successfully,  I want the form runner to send
> a event to other portlets  using javascript. But I didn't find the place to
> add the javascript, can anyone help to give me some clues?
>
>
> --
> 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