⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Add records to set_relation table from add/edit action



mephi
  • profile picture
  • Member

Posted 25 February 2013 - 12:12 PM

Hello,

 

 

Some time ago (couple of months) I found a solution on the forum for the feature I need to integrate.

 

Basically I have 2 tables (groups and persons) and I set a relation between them groups.id_creator == persons.id (a 1 to n relation).

 

What I need is when I want to add a new group, in the dropdown with list of available persons to be able to add a new record in case the creator of the group is missing from the persons table.

 

Can anyone give me a hand and tell me how I can achieve this? (from what I remember there was a solution with javascript / lightbox window popup where you were adding the new record then reload the list of available people for that table ...)

 

Looking forward for your help and thanks in advance!


mephi
  • profile picture
  • Member

Posted 27 February 2013 - 07:29 AM

C'mon no one is willing to give a hand? :-s


victor
  • profile picture
  • Member

Posted 27 February 2013 - 08:18 AM

Can anyone give me a hand and tell me how I can achieve this? (from what I remember there was a solution with javascript / lightbox window popup where you were adding the new record then reload the list of available people for that table ...)

 

Looking forward for your help and thanks in advance!

 


Why do you don't like that method? or you don't understand how it do?

mephi
  • profile picture
  • Member

Posted 27 February 2013 - 08:25 AM

Victor,

 

I can't find the post where the solution was explained... That's why I'm asking here again, if someone can post me a link to that solution or post again what I have to do to achieve this behaviour/update.


victor
  • profile picture
  • Member

Posted 27 February 2013 - 08:34 AM

/topic/364-answered-set-relation-and-add-new-button-to-quick-insert/

mephi
  • profile picture
  • Member

Posted 27 February 2013 - 08:38 AM

Thanks a milion Victor! :D