Loading ...
Sorry, an error occurred while loading the content.
 

Implementation problem with browsing records

Expand Messages
  • Frédéric
    Hi, I tried to implement the Master/Detail views example that you can find at this url ... part2.html#Masterdetail. This example works fine with the
    Message 1 of 2 , May 5, 2006
      Hi,

      I tried to implement the Master/Detail views example that you can
      find
      at this url
      :http://www.w3.org/MarkUp/Forms/2006/xforms-for-html-authors-
      part2.html#Masterdetail.

      This example works fine with the XForm-Mozilla extension but it's
      necessary to add a rebuild action with fp-plugin :

      <head />
      <object ...>
      </object>
      <xf:model id="mod-todo">
      <xf:instance id="todo">
      <items xmlns="">
      <todo>
      <task>Update website</task>
      <status>started</status>
      <date>2004-12-31</date>
      </todo>
      <todo>
      <task>bilou bilou</task>
      <status>ended</status>
      <date>2005-12-31</date>
      </todo>
      <todo>
      <task>bally bally</task>
      <status>finished</status>
      <date>2006-12-31</date>
      </todo>
      </items>
      </xf:instance>

      <xf:instance id="admin">
      <data xmlns="">
      <index>1</index>
      </data>
      </xf:instance>
      </xf:model>

      <title>xformsTest</title>
      </head>
      <body>
      <form id="Form1" method="post">

      <xf:group ref="todo[position()=instance('admin')/index]">

      <xf:trigger>
      <xf:label><</xf:label>
      <xf:action ev:event="DOMActivate">
      <xf:setvalue ref="instance('admin')/index" value=". - 1"/>
      <!-- this action is not necessary with mozilla
      and doesn't appear on the W3C example -->
      <xf:rebuild model="mod-todo"/>
      </xf:action>
      </xf:trigger>

      <br />
      <xf:output ref="date"/>
      <br />
      <xf:output ref="status"/>
      <br />
      <xf:output ref="task"/>

      <xf:trigger>
      <xf:label>></xf:label>
      <xf:action ev:event="DOMActivate">
      <xf:setvalue ref="instance('admin')/index" value=". + 1"/>
      <!-- this action is not necessary with mozilla
      and doesn't appear on the W3C example -->
      <xf:rebuild model="mod-todo"/>
      </xf:action>
      </xf:trigger>
      </xf:group>

      <br />
      <xf:output value="instance('admin')/index" />
      <br />
      <xf:output value="count(instance('todo')/todo)" />

      </form>
      </body>


      Why this necessary adding of rebuild action with fp ?
      regards
    • David Dupont
      Idem!! David DUPONT Pôle Information - Service informatique - TNS Media Intelligence Tel. : +33 1 47 67 17 51 mailto:david.dupont@tnsmi.fr
      Message 2 of 2 , May 17, 2006
        RE: [formsPlayer] Implementation problem with browsing records

        Idem!!

        David DUPONT

        Pôle Information

        - Service informatique -

        TNS Media Intelligence
        Tel. : +33 1 47 67 17 51
        mailto:david.dupont@...
        http://www.tns-mediaintelligence.com

        -----Message d'origine-----
        De : formsPlayer@yahoogroups.com [mailto:formsPlayer@yahoogroups.com] De la part de Frédéric
        Envoyé : vendredi 5 mai 2006 13:42
        À : formsPlayer@yahoogroups.com
        Objet : [formsPlayer] Implementation problem with browsing records

        Hi,

        I tried to implement the Master/Detail views example that you can
        find
        at this url
        :http://www.w3.org/MarkUp/Forms/2006/xforms-for-html-authors-
        part2.html#Masterdetail.

        This example works fine with the XForm-Mozilla extension but it's
        necessary to add a rebuild action with fp-plugin :

        <head />
          <object ...>
          </object>
          <xf:model id="mod-todo">
            <xf:instance id="todo">
              <items xmlns="">
                <todo>
                  <task>Update website</task>
                  <status>started</status>
                  <date>2004-12-31</date>
                </todo>
                <todo>
                  <task>bilou bilou</task>
                  <status>ended</status>
                  <date>2005-12-31</date>
                </todo>
                <todo>
                  <task>bally bally</task>
                  <status>finished</status>
                  <date>2006-12-31</date>
                </todo>
              </items>   
            </xf:instance>

            <xf:instance id="admin">
              <data xmlns="">
                <index>1</index>
              </data>
            </xf:instance>     
          </xf:model>

          <title>xformsTest</title>
        </head>
        <body>
          <form id="Form1" method="post">
         
            <xf:group ref="todo[position()=instance('admin')/index]">

              <xf:trigger>
                <xf:label>&lt;</xf:label>
                <xf:action ev:event="DOMActivate">
                  <xf:setvalue ref="instance('admin')/index" value=". - 1"/>
                  <!-- this action is not necessary with mozilla
                       and doesn't appear on the W3C example -->
                  <xf:rebuild model="mod-todo"/>
                </xf:action>
              </xf:trigger>
                       
              <br />
              <xf:output ref="date"/>
              <br />
              <xf:output ref="status"/>
              <br />
              <xf:output ref="task"/>
                               
              <xf:trigger>
                <xf:label>&gt;</xf:label>
                <xf:action ev:event="DOMActivate">
                  <xf:setvalue ref="instance('admin')/index" value=". + 1"/>
                  <!-- this action is not necessary with mozilla
                       and doesn't appear on the W3C example -->
                  <xf:rebuild model="mod-todo"/>
                </xf:action>
              </xf:trigger>                    
            </xf:group>
           
            <br />
            <xf:output value="instance('admin')/index" />
            <br />
            <xf:output value="count(instance('todo')/todo)" />

         </form>
        </body>


        Why this necessary adding of rebuild action with fp ?
        regards






        ------------------------ Yahoo! Groups Sponsor --------------------~-->
        Get to your groups with one click. Know instantly when new email arrives
        http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/dkFolB/TM
        --------------------------------------------------------------------~->

         
        Yahoo! Groups Links

        <*> To visit your group on the web, go to:
            http://groups.yahoo.com/group/formsPlayer/

        <*> To unsubscribe from this group, send an email to:
            formsPlayer-unsubscribe@yahoogroups.com

        <*> Your use of Yahoo! Groups is subject to:
            http://docs.yahoo.com/info/terms/
         


      Your message has been successfully submitted and would be delivered to recipients shortly.