XBL Components is not answering xforms-value-changed event.

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

XBL Components is not answering xforms-value-changed event.

mauricio
Hi,

I have the following case: a value change outside xbl component and the component is not affected.

Event xforms-enabled works but xforms-value-changed doesn't.

Shouldn't it work?

Follow attached:
  xforms-hello sample modified for test,
  XBL test component ,
  Test images.

Thanks.

Mauricio.

--
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].

xforms-hello.zip (2K) Download Attachment
xform-enabled works.png (122K) Download Attachment
input on xbl component.png (122K) Download Attachment
input-test.zip (2K) Download Attachment
Input standard.png (123K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: XBL Components is not answering xforms-value-changed event.

Alessandro  Vernet
Administrator
Hi Mauricio,

My apologies for the late response! And congratulations for having made it that far. The part of your example that isn't working is the xforms-value-changed on the xf:group, because the xf:group doesn't really hold a value, so doesn't trigger an xforms-value-change. Things will work if you change it to xf:variable, which is very much like a control with no UI and that as a "side effect" declares a variable.

For reference, here the updated input-test.xbl.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: XBL Components is not answering xforms-value-changed event.

mauricio
Hi Alex,

The solution came just in time for me.

It works great now!

Thank you very much,

Mauricio.


2015-12-28 5:11 GMT-02:00 Alessandro Vernet <[hidden email]>:
Hi Mauricio,

My apologies for the late response! And congratulations for having made it
that far. The part of your example that isn't working is the
xforms-value-changed on the xf:group, because the xf:group doesn't really
hold a value, so doesn't trigger an xforms-value-change. Things will work if
you change it to xf:variable, which is very much like a control with no UI
and that as a "side effect" declares a variable.

For reference, here the updated  input-test.xbl
<http://discuss.orbeon.com/file/n4660917/input-test.xbl>  .

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/XBL-Components-is-not-answering-xforms-value-changed-event-tp4660902p4660917.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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].

--
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: XBL Components is not answering xforms-value-changed event.

Alessandro  Vernet
Administrator
Hi Mauricio,

Excellent, I glad this solved your issue, and thank you for the update.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet