⚠ 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

Help with add grid



Fmasterous
  • profile picture
  • Member

Posted 12 January 2015 - 15:41 PM

Hi community..

 

I am a fairly unexperienced Computer Sciences Engineer, fairly new to GC as well, my boss asked me to make a sites' data administrator in php, and providing it was CRUDs and CRUDs and more CRUDs, I decided to use Grocery Crud along with CodeIgniter so I could make this thing work the fastest as possible.

 

My doubt is as follows, I have a table Site, which represents a website, and I have a table Contact, which represents a person who controls the website components.

 

I've got an n-n relationship between them, and this relationship works perfectly.. The only problem my boss found was that when you add a new website, if you want to add a new contact referring this site, you have to open the Contacts maintainer, and by doing so, losing any data you would have already written on the previous form.

 

So my question is, I want to put a hyperlink or a custom button on the add form of the Sites Maintainer, so that it "opens the Contacts Maintainer in a new tab on my browser, without redirecting"

 

Is there any way to do it ?

 

Thank you very much in advance


Amit Shah
  • profile picture
  • Member

Posted 13 January 2015 - 21:39 PM

Well - very 1st will like to share you that when u adding a new record...even if u can manage to create a button to open the contact manage in a popup.. and so on.. it still will have trouble getting linked up because you dont have yet created the record.. so all the new / fresh entries that goes in goes un-linked. So its not recommended you attain such feature. There is a way - it could have been accomplished but it is way to complex to achieve the same - so i dont recommend doing it. I will look into accomplishing it myself if that works - will share the solution .. till tht - will not recommend it.