[Xsltforms-support] use of xforms-ready event with validation
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2009-10-22 03:59:37
|
Hello, I am using the xforms-ready event to set values, e.g. </xf:model> .... <xf:instance id="inst_device_manufacturer" src="../../deegree-wfs/services?service=WFS&typename=aatams:device_manufacturer"/> .... <xf:action ev:event="xforms-ready"> <xf:setvalue ref="instance('inst_subfeatures')//device_manufacturer_id" value="instance('inst_device_manufacturer')//aatams:device_manufacturer[1]/@gml:id"/> </xf:action> </xf:model> There is a select1 control bound to "instance('inst_subfeatures')//device_manufacturer_id", I would like this to appear validated after doing the xf:setvalue above. If I interact with the form the revalidate event is triggered and all my bound select1 controls, preset as above to the first item in their itemset, get validated. I'd like them to appear validated immediately after xforms-ready but this might not be possible? Thanks -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html |