[FLOW3-general] Fluid formular + Parent-Child objects
Bernhard Fischer
bernhard at fischli.org
Wed Nov 9 11:23:17 CET 2011
Hi Patrick,
one way could be, to do it in two steps. First to present a view to
generate an appointment and afterwards a second view which will show up
to fill in the human. Otherwise you have to assign both objects (the
appointment and the already created human) at once to the view. In the
following createAction you may connect both objects and add them to your
repository. Maybe I'm wrong?!?
Bernhard
On 11/09/2011 11:04 AM, Patrick Sernetz wrote:
> Hi,
>
> I am trying to solve a little problem. I am trying to setup a webform to
> fill in some appointments. The form appointments is connected to an domain
> class.
>
> class Appointment
> '---> creator (class human)
> '---> date
> '---> subject
>
> class human
> '---> name
> '---> firstname
> '---> department
>
> So I´ve create a fluid form like that
>
> <f:form action="createAppointment" controller="Appointment" package="Cal"
> name="appointment" object="{appointment}">
>
> <f:form.textbox id="date" property="date" /><br />
> <f:form.textbox id="subject " property="subject " /><br />
> <f:form.textbox id="creator " property="creator " /><br />
> <f:form.textbox id=" creator.name " property="
> creator.name" /><br />
> <f:form.textbox id=" creator.firstname "
> property="creator.firstname" /><br />
> <f:form.textbox id=" creator.department " property="creator.department"
> />--><br/>
> <f:form.submit value="Create the appointment" />
>
> </f:form>
>
> As a result I´ve expected that Flow would create a complete object
> appointment filled with all the details for the appointment and the
> creator. But this doesn´t work. It fails with a message that it´s not allow
> to create an object.
>
> I already tried to assign an appointment object to the view, with all the
> details already filled in. So it´s more or less an update of an object and
> not a new one, but this fails with the same message.
>
> Could someone please help me?
>
> Regards,
> Patrick
More information about the FLOW3-general
mailing list