[Zope] Varible in iterated list

Lester Cram Lester.Cram at rah.scot.nhs.uk
Thu Nov 27 07:46:55 EST 2003


hello
I have
    <dtml-in sqlquery size=3D20 start=3Dquery_start>
       <dtml-if sequence-start>
          <dtml-if previous-sequence>
            <a href=3D"<dtml-var URL><dtml-var sequence-query
                     >query_start=3D<dtml-var
                     previous-sequence-start-number>">
            (Previous <dtml-var previous-sequence-size> results)
            </a>
          </dtml-if previous-sequence>
          <table >
            <tr>=20
          <th>Value1</th>
           <th>Value2</th>     =20
    </tr>
         =20
       </dtml-if sequence-start>
            <tr>  <a onclick=3D"pa.submit()" >               =20

- Ignored:
    
              <td><div onMouseOver=3D"this.style.cursor=3D'hand'"><dtml-var =
    Value1 null=3D""></div></td>
              <td><div onMouseOver=3D"this.style.cursor=3D'hand'"><dtml-var =
    Value2 null=3D""></div></td></a>
    
    <td><form action=3D"someaction" method=3D"get" name=3D"pa">
    <input type=3D"hidden" name=3D"Value1" value=3D"<dtml-var Value1 null=3D"">=
    "> =20
    <input type=3D"hidden" name=3D"Value2" value=3D"<dtml-var Value2 null=3D"">=
    "> </td>
    
    
    
            </tr>
    
       <dtml-if sequence-end>
    My problem is with the value for pa. When the results from a previous =
    search are fed into this method
    an iterated list is produced but the pa value does not change either in =
    the onclick nor name positions
    There is no field in the actual database that would be suitable for =
    supplying a new value for each position.
    Is there a simple solution for this??
    Any help appreciated.
    


Remember that age and treachery will always triumph over youth and ability




More information about the Zope mailing list