logo       

[symfony-users] Re: nested forms: msg#00852

symfony-users

Subject: [symfony-users] Re: nested forms


W dniu 30 lipca 2009 10:18 uÅytkownik mirfan <m.irfansb@xxxxxxxxx> 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-be-domesticated-a-simple-todo-list
http://www.thatsquality.com/articles/stretching-sfform-with-dynamic-elements-ajax-a-love-story
http://www.thatsquality.com/articles/embedding-child-forms-with-sfformpropel-a-practical-example

I have used simmilar approach.

>
> On Jul 30, 1:23Âpm, Åukasz Wojciechowski <lu...@xxxxxxxxxxxxxxxx>
> 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...@xxxxxxxxx>:
>>
>>
>>
>> > please somebody help me i am really stucked here
>>
>> > On Jul 29, 6:48Âpm, mirfan <m.irfa...@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
symfony-users+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Google Custom Search

News | Mail Home | sitemap | FAQ | advertise