Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

1:1 Links how to do ? 16 Apr 2012 16:39 #2025

hello,

Urgently needed response to this problem.



What steps should I take to add more fields in a FK table form?


Help me Please!!!!
The following user(s) said Thank You: edwardcox

Please Log in or Create an account to join the conversation.

Re: 1:1 Links how to do ? 16 Apr 2012 18:08 #2026

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You deal with 2 SQL tables, so you need to interface the 2 tables files (php)

For instance :
Main table : Account (generated by Cook)
Linked table : Users (existing table)

TODO : (frame)

1. First of all, in the BUILDER
- Create your two tables (even the users table)
- Fill with all the users fields (cloned, but you can create less fields)
- In the main TABLE, create a FK to the users table (short name: 'user' for instance)
- In the LAYOUTS, instance the 1:1 joined fields (In forms, you cannot for the moment)


2. In LAYOUTS FORMS php files
- Instance your fields manually* (with JDom, it is really easy)
*using the joined name alias (_user_myfield for instance)


3. In the MODEL of the main table (account) :
- receive the POST and separate the VALUES that not concern the main table (starting with '_user_')
- deal with the store() and co. functions, calling the second table class (users : native of joomla in our case)
- manage the idkey in operations (ADD-EDIT-DELETE)


That all I can say for the moment.
I should do a tutorial for that.
Coding is now a piece of cake
The following user(s) said Thank You: VeCrea, edwardcox, devil, JoomGuy

Please Log in or Create an account to join the conversation.

Last edit: by admin.

Re: 1:1 Links how to do ? 19 Apr 2012 11:22 #2056

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 132
  • Thank you received: 19
Hi tiaguiar, have you succeeded? Do you have any experience to share. It makes me very interested.
Thank you

Please Log in or Create an account to join the conversation.

Re: 1:1 Links how to do ? 19 Apr 2012 11:39 #2057

And me too.
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.

Please Log in or Create an account to join the conversation.

Re: 1:1 Links how to do ? 20 Apr 2012 06:39 #2066

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 132
  • Thank you received: 19
Hi Jocelyn

Please could you be so kind to write little more detailed guide about your previous 1:1 links post?
I know it is the question of finding some time for it.
I tried something but it seems I need more information to this.

thanks a lot

Please Log in or Create an account to join the conversation.

Re: 1:1 Links how to do ? 22 Sep 2012 10:51 #3844

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
+1

Hi Admin,

Please could you further explain and if possible provide example of this?

Many thanks!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: 1:1 Links how to do ? 16 Mar 2013 11:33 #6953

You should do a tut on this! It would be very helpful!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.076 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started