Welcome, Guest
Username: Password: Remember me

TOPIC: 1:1 Links how to do ?

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

  • tiaguiar
  • tiaguiar's Avatar
  • Offline
  • New Member
  • Posts: 1
  • Thank you received: 1
  • Karma: 0
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 administrator has disabled public write access.
The following user(s) said Thank You: edwardcox

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
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
Last Edit: 16 Apr 2012 18:10 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: VeCrea, edwardcox, devil, JoomGuy

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

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Posts: 132
  • Thank you received: 19
  • Karma: 7
Hi tiaguiar, have you succeeded? Do you have any experience to share. It makes me very interested.
Thank you
The administrator has disabled public write access.

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

  • edwardcox
  • edwardcox's Avatar
  • Offline
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
  • Karma: 12
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.
The administrator has disabled public write access.

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

  • etc
  • etc's Avatar
  • Offline
  • Premium Member
  • Posts: 132
  • Thank you received: 19
  • Karma: 7
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
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
+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!!!
The administrator has disabled public write access.

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

  • chmchm
  • chmchm's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
You should do a tut on this! It would be very helpful!
The administrator has disabled public write access.
Time to create page: 0.107 seconds

Get Started