thx matt,
i looked into the input-many tag and yes it look slike as what i need:
http://cookbook.hobocentral.net/api_tag_defs/input-many
so i tried this (pages):
<def tag="new-page" for="CountSheetHeader">
<page merge title="New Count Sheet Header">
<body: class="new-page count-sheet-header" param/>
<content: param>
<section param="content-header">
<h2 param="heading">New Count Sheet Header</h2>
</section>
<section param="content-body">
<form param>
<submit: label="Create Count Sheet Header"/>
</form>
</section>
<input-many:count_sheet_lines><field-list fields="qty1, qty2,
note"/></input-many>
</content:>
</page>
</def>
this gives me the ajax functionality to add / remove the lines, showing me 3
fields but there are NO text-input fields....
any ideas?
thx
On Fri, Oct 30, 2009 at 3:24 PM, Matt Jones <[email protected]> wrote:
>
>
> On Oct 30, 2009, at 3:07 PM, tommaso wrote:
>
> >
> > hi, being total new to hobo, i was wondering if there is an tutorial
> > about how to create a parent-child association in one go?
> > what i want is eg:
> > model InvoiceHeader <> InvoiceLines
> > ideal would be to know how to add / del lines on the fly as i can do
> > it with ror. any tutorials out there?
> >
>
> You're probably looking for the input-many tag. I believe it's part of
> the Agility tutorial - you may want to start there (
> http://cookbook.hobocentral.net/tutorials/agility
> ) to get your feet wet in Hobo.
>
> (Thanks for the clearer name, btw. :)
>
> --Matt Jones
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---