W3C home > Mailing lists > Public > www-forms@w3.org > November 2006

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

From: Sébastien CRAMATTE <contact@zeninteractif.com>
Date: Wed, 01 Nov 2006 17:09:20 +0100
Message-ID: <4548C6B0.2050202@zeninteractif.com>
Cc: www-forms@w3.org


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">
                    <objets xmlns="">
                            <nom />
                            <reference />
            <xf:instance id="provenances"
src="/mauritanien/datas/provenances" />   
            <xf:instance id="auteurs" src="/mauritanien/datas/auteurs"

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

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

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

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

Thanks for your help
Received on Wednesday, 1 November 2006 16:09:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:54 UTC