Does it exists a mean to refresh external instance ...

Hi

I would like to know If  it exists a mean to refresh/reload external
instance with an event or an action ?
I've got 3 models in the same form  and I would to refresh  instances
"provenances" and "auteurs"  when  a new "provenance" or "auteur" is
inserted via model2 or model3 ...
My Xforms refresh correctly the dependency model of  model1 but 
external instances are not reloaded  so my  select1 + itemset  controls
neither ...


    <xf:model id="model1">
            <xf:instance>   
                    <objets xmlns="">
                            <id_auteur>2</id_auteur>
                            <id_provenance>0</id_provenance>
                            <id_categorie>0</id_categorie>
                            <nom />
                            <reference />
                            <description><![CDATA[text]]></description>
                            <mots_clefs><![CDATA[text]]></mots_clefs>
                            <date_achat
xsi:type="xsd:date">2006-11-01</date_achat>
                            <prix_achat
xsi:type="xsd:integer">0</prix_achat>
                    </objets>
            </xf:instance>
            <xf:instance id="provenances"
src="/mauritanien/datas/provenances" />   
            <xf:instance id="auteurs" src="/mauritanien/datas/auteurs"
/>   

      <xf:instance id="response">
          <dummy xmlns="" />
      </xf:instance>

            <xf:submission id="submission01"
action="/mauritanien/datas/save" method="post" instance="response"
replace="instance">
                <xf:toggle ev:event="xforms-submit-done" case="s1" />
            </xf:submission>       
           
    </xf:model>
   
    <xf:model id="model2">
            <xf:instance>   
                    <auteurs xmlns="">
                        <prenom>toto</prenom>
                        <nom>test</nom>
                    </auteurs>
            </xf:instance>   

      <xf:instance id="response2">
          <dummy xmlns="" />
      </xf:instance>
           
            <xf:submission id="submission02"
action="/mauritanien/datas/save" method="post">
                <xf:dispatch ev:event="xforms-submit-done"
target="model1" name="xforms-rebuild" />
            </xf:submission>
    </xf:model>   

    <xf:model id="model3">
            <xf:instance>   
                    <provenances xmlns="">
                        <nom/>
                    </provenances>
            </xf:instance>   
       
      <xf:instance id="response3">
          <dummy xmlns="" />
      </xf:instance>
           
            <xf:submission id="submission03"
action="/mauritanien/datas/save" method="post" >
                <xf:dispatch ev:event="xforms-submit-done"
target="model1" name="xforms-rebuild"  />
            </xf:submission>       
               
    </xf:model>   

Thanks for your help
Regards

Received on Wednesday, 1 November 2006 16:09:38 UTC