Re: [Xsltforms-support] Dynamic loading of instance into a model
Brought to you by:
alain-couthures
From: Klotz, L. <Lei...@xe...> - 2010-04-30 20:24:32
|
It would be better to load the instance on xforms-model-construct-done than xforms-ready because xforms-ready tells the UI to refresh so you'll get two refreshes. Leigh. ________________________________ From: COUTHURES Alain [mailto:ala...@ag...] Sent: Tuesday, April 20, 2010 12:50 PM To: Dhiradj Badloe Cc: xsl...@li... Subject: Re: [Xsltforms-support] Dynamic loading of instance into a model Hello Dhiradj, I have a question about the dynamic loading of an instance into a model. Here's in example of my code: <xf:model id="InlineWerken"> <xf:instance id="inlinewerken" src="vte_406207_d.xml" /> </xf:model> The xml file is read from a local folder. This name of the XML file will be different every time.(based on exports from another application). I'm looking for a solution how to dynamically load the instance in the model. You can use a submission to be activated automatically after form load. This has to be associated with "xforms-ready" directly into the model declaration. Sorry, I can't find a working example about that but I have already used this workaround... Thanks! -Alain |