- From: Jason <jeacott@hardlight.com.au>
- Date: Thu, 02 Nov 2006 16:38:45 +1030
- To: www-forms <www-forms@w3.org>
Hi all, does anyone know how to do a conditional send in an xforms-ready event handler? I've tried a few things - and a few things that I really wouldnt expect to work, but so far I dont have a solution. for those that want to know why - I only want the form to load data if it needs to - and it doesnt need to in every case. eg: -this doesnt work but you get the idea. <xf:action ev:event="xforms-ready" > <xf:group ref="instance('formdefinition')/workflow/jbpm/@taskinstanceid!=''"> <xf:send submission="loadtransitionlist" /> </xf:group> </xf:action> While I'm here I discovered what I would consider some inconsistencies in the xforms spec today. with xf:load you can bind to an instance node in order to load a new page. but the same bind/ref attributes cant be used in the same way for a submission element. I really wanted a way to dynamically choose the url and params that a submision element would submit to (I wanted to submit the xml to that location) but couldnt find a way to do it. If the attributes were a bit more consistent in how they are used in the various elements then I think xforms would be a whole bunch easier to use. Thanks Jason.
Received on Thursday, 2 November 2006 06:12:01 UTC