On Fri, 27 Aug 2004 07:30:35 +0900, Mark Probert wrote
> My current version of this is:
> 
>         <table>
>             <tr>
>                 <th>Label</th>
>                 <th>Group</th>
>                 <th>Comments</th>
>             </tr>    
>           <repeat oid="recList">
>             <tr>
>                 <td><input type="text" oid="rec.label"></td>
>                 <td><select oid="grpList">
>                       <option oid="selgrp">
>                     </select>
>                 </td>
>                 <td><input type="text" oid="rec.comment"></td>
>             </tr>
>           </repeat>
>         </table>
> 
> Though it won't really work because the "recList" oid is expecting a 
> text value rather than a select list.
> 
> Q2: How do I extract the currently selected value and place it in 
> the     record?

You're close.

For your select box:

<select oid="grpList">
  <option oid="rec.group"/>
</select>


And then in your binding:

grpList {
  item = rec.group
  list = groups
}

That way, the select box will reflect the state of rec.group when the form 
is generated, and when someone changes the form, rec.group will have the new 
value.


Make sense?

Kirk Haines