Section template with an HTTP service and an action

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

Section template with an HTTP service and an action

bwallis42
I have a section template (shown below) that has a single http service and an
action that is set to run always, when the form loads and before initial
data values are calculated. This action calls the service and populates a
dataset called userprofile.

In the (only) section in the form I have two text controls that are
populated from the dataset using something like this


This tests fine in the builder and as a standalone form. The service is
called and the controls are populated as expected.

When I publish this as a library and then create a new form and use it from
the Section Templates toolbox the form displays its controls OK but the
action is not run and the controls are not populated. I suspect the event
'fr-run-form-load-action-before-data' is not occurring for the form when it
is an included library section. I've tried other combinations of settings in
the action control but i don't think I really understand the events in forms
and when they occur.





--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Section template with an HTTP service and an action

Alessandro  Vernet
Administrator
Hi Brian,

Yes, unfortunately I think that you've hit a known problem. I've included
the link the relevant issue below. Is this a blocker for you at this point,
or were you for now just experimenting with this?

https://github.com/orbeon/orbeon-forms/issues/3132

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet