I can try but You should provide us some code.

Maybe a fragment which is responsible for embedding forms.

--
Best regards
Łukasz Wojciechowski

New Generation Software
+48 602 214 629
http://www.ngsoft.pl



W dniu 3 sierpnia 2009 06:43 użytkownik mirfan <m.irfa...@gmail.com> napisał:
>
> Hi Łukasz Wojciechowski,
>
> Ryan Weaver blog is really helpful it solve alot of my problems, but i
> have another one issue is the same from Ryan blog i have get how to
> embed a single form multiple time but i have to embed multiple forms
> multiple times i use the same techniques for other forms to embed but
> others are not saving let me explain it briefly:
> my master form is Patients and i have to include the following forms
> multiple time
>         PatientFamilyHistoryForm
>         PatientHabitHistoryForm
>         PatientImmunizationForm
>         PatientMedicationList
>         PatientProblemList
> so for i have tried for the PatientFamilyHistroyForm and
> PatientHistoryForm forms are embedded successfuly but not saving when
> i remove PatientHabitHistoryForm then PatientFamilyHistoryForm is
> working Fine. Please help.
> Regards,
>
> On Jul 31, 8:16 pm, pcummins <patwcumm...@gmail.com> wrote:
>> Mirfan,
>>
>> It doesn't appear the core symfomy/doctrine team hasn't provided a
>> standardized way (or definitive example) for working 1:mformsin
>> doctrine yet (although all the parts are in place for symfony users to
>> build these types offorms)
>>
>> Unfortunately this means that there are number of methods that people
>> are using to get this this done.
>>
>> Here are a few complete methods that work:
>>
>> 1) Complete walk through that works:http://redotheoffice.com/?p=42
>>
>> This has adding/deleting and it well written and easy to follow.   I
>> believe it only works with a single 1:Mnestedforms.
>>
>> 2) 
>> sfGuardUserPlugin:http://www.symfony-project.org/plugins/sfDoctrineUserPlugin
>>
>> This is a very thorough example with multiple 1:m on a single pages,
>> plus add/delete buttons for the Mforms.  However it required of
>> overrideing methods to be implemented.  If you can follow Stephens
>> code, I recommend this method.  I believe a few of the functions he
>> has provided are now a part of the sfDoctrinePlugin, but I haven't had
>> any problems extending his plugin using the symfony 1.2 branch)
>>
>> On Jul 30, 4:31 am, Łukasz Wojciechowski <lu...@pronet.lublin.pl>
>> wrote:
>>
>> > W dniu 30 lipca 2009 10:18 użytkownik mirfan <m.irfa...@gmail.com> napisał:
>>
>> > > thanks for your comments i have also the same problem only the last
>> > > values are saved but i its strange if symfony give embedFormForEach
>> > > facility then there should bw a way to mangae it.
>>
>> > this is good question :)
>>
>> > > and also one more
>> > > thing if i am using a loop then the loop will be limited to the
>> > > counter but in my form i have no restriction how many time this is
>> > > embedded what should i do for this.
>> > > Regards,
>>
>> > You should read Ryan Weaver blog posts:
>>
>> >http://www.thatsquality.com/articles/can-the-symfony-forms-framework-......
>>
>> > I have used simmilar approach.
>>
>> > > On Jul 30, 1:23 pm, Łukasz Wojciechowski <lu...@pronet.lublin.pl>
>> > > wrote:
>> > >> I have only one advice for You.
>> > >> Use embedForm instead of embedFormForEach.
>>
>> > >> Few days back I also tried to create dynamic form and I got nowhere
>> > >> when using embedFormForEach.
>> > >> Practically You should be able to use embedForm many times in a loop
>> > >> and You should get the same effect.
>> > >> In my case when I was using embedFormForEach and there was more than
>> > >> one embedded form - only the last one was saved to database. When I
>> > >> used embedForm in a loop then all records was saved to database
>> > >> properly.
>>
>> > >> good luck
>>
>> > >> --
>> > >> Best regards
>> > >> Łukasz Wojciechowski
>>
>> > >> New Generation Software
>> > >> +48 602 214 629http://www.ngsoft.pl
>>
>> > >> 2009/7/30 mirfan <m.irfa...@gmail.com>:
>>
>> > >> > please somebody help me i am really stucked here
>>
>> > >> > On Jul 29, 6:48 pm, mirfan <m.irfa...@gmail.com> wrote:
>> > >> >> hi everybody,
>> > >> >> i am using embedFormForEach and also embedForm:
>> > >> >>  1. embedForm save data without any problems but embedFormForeach is
>> > >> >> not saving the data in database.
>> > >> >>  2. i need unlimited time to embed form thats why i am using
>> > >> >> embedFormForEach but i need some help here:
>> > >> >>      a. first is that some depends on database tables it will read
>> > >> >> modifiers how many they that muchformswill be embedded.
>> > >> >>      example
>> > >> >>           i have eye_symptoms table which have the following fields
>> > >> >>                id
>> > >> >>                symptom_title
>> > >> >>                status
>> > >> >>           the modifier table fields are
>> > >> >>                id
>> > >> >>                symptom_id
>> > >> >>                onset
>> > >> >>                value
>> > >> >>          now if i add 5 values in modifier table i will need five
>> > >> >>formst embed.
>> > >> >>       b. second problem with embedForEach is that i want to use
>> > >> >> javascript as i click on add the form should be generated, and it has
>> > >> >> no limit may i need just once or may be 15 time.
>>
>> > >> >> please help i am fresh to symfony and my task is very complex, any
>> > >> >> help will really glade me
>>
>> > >> >> Regards,
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to