[Flow] How to build One-To-Many Forms
mario chiari
ml at mariochiari.net
Tue Nov 5 20:58:02 CET 2013
Hi,
you are very welcome, but unfortunately I am not a TYPO3/Flow expert.
On Mon, 2013-11-04 at 20:42 +0100, Axel Wüstemann wrote:
> Am 04.11.2013 18:38, schrieb mario chiari:
> > hi,
> >
> > On Mon, 2013-11-04 at 16:43 +0100, Axel Wüstemann wrote:
> >>> ...
> >
> > http://pastebin.com/UW1HwReu line 58, try deposits.{i.index}.deposit
> > (note: deposit>>s<<) within you form select
> > maybe ...
> This works, Mario, thank you. I dropes the as="deposit" in the <f:for> loop.
>
> But ther remains some problems:
>
> 1. there is no reference to the perent object "depositInspection" within
> the "deposits" children. This property is NULL
how did you define the properties? Double check how/whether you used
mappedBy="..." and cascade={"persist"}.
>
> 2. I have initially 5 deposits and fill only 3, so 2 remains empty. Will
> this generate empty rows [?]
no idea, have you tried? Do you need always exactly five? Otherwise, why
don't you offer the chance to create as many form input field as a user
may need (just by some JS)?
>
> 3. Unfortunately I'm action on Oracle, and there seems an Doctrene bug
> with generating a seuquence (auto increment id in Oracle). I figured
> out, if I write an SQL Insert statemant, all works fine. But now - how
> to do so with an One to many relation?
I have never used Oracle. Sorry, I am unable to help.
>
> By the way - the initializeCreateAction seems not to be nessecary.
Good!
>
> Thank your for you're great assistance! Grazie mille.
very welcome
let me know
mario
>
> Axel
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list