Thanks! this_field works great.

The final solution is:

<table-plus...>
  <prepend-field-heading-row:><th class="position-heading">#</th></
prepend-field-heading-row:>
  <prepend-tr:><td><%= this_field + 1 %></td></prepend-tr:>
</table-plus>

The first record with this_filed is 0, so we need the +1.

TF


On Apr 15, 12:51 pm, Bryan Larsen <[email protected]> wrote:
> On Apr 15, 3:58 am, Tom Locke <[email protected]> wrote:
>
> > > This hack would let you use it outside a form.  If Tom doesn't think
> > > it's gross, I can add it to edge hobo.
>
> > It is kinda gross : )
>
> That's what I thought you'd say.  :)
>
> When Kevin brought out his solution, my first thought was "doh!".
> Much simpler than my gross hack!
>
> And to make things even more silly, there's even a simpler solution:
>
>  <prepend-tr:>
>      <td><%= this_field %></td>
>  </prepend-tr:>
>
> "this_field" contains the index in the repeat.  It disappears when you
> actually access a field using with-fields, but....
>
> Bryan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to