Discussion:
Problem using xf:dispatch
Mats Eklund
2014-09-10 15:42:10 UTC
Permalink
Hi Alan,

When adding an xf:dispatch element to my form, I get an error message during runtime "Error dispatching event 'my-custom-event' : TypeError Unable to get value of the property 'listeners': object is null or undefined". I was able to fix it by putting a condition around last line in the body of the definition of the function 'XsltForms_listener(...)' in xsltforms.js (variable subform is null).

Please consider adding this to official code!

Kind regards,
Mats
Alain Couthures
2014-09-12 16:29:47 UTC
Permalink
Hi Mats!

Variable subform should never be null so it is an issue in Javascript
generation.

Could you please send me a minimal test case?

Thanks!

--Alain
Post by Mats Eklund
Hi Alan,
When adding an xf:dispatch element to my form, I get an error message during runtime "Error dispatching event 'my-custom-event' : TypeError Unable to get value of the property 'listeners': object is null or undefined". I was able to fix it by putting a condition around last line in the body of the definition of the function 'XsltForms_listener(...)' in xsltforms.js (variable subform is null).
Please consider adding this to official code!
Kind regards,
Mats
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Xsltforms-support mailing list
https://lists.sourceforge.net/lists/listinfo/xsltforms-support
Loading...