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

TOPIC:

1 : N relationship problems 30 Sep 2014 10:50 #12667

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Due to the complexity of some of my forms, I have to use the exploded method of form display. This is causing me problems when I am trying to pull in a related grid of information.

I have my main table, which when I display a single item, I want to display a grid of related records from another table.

I have successfully altered the models, and I can see when running development tools that the model is pulling in the related records, however I cannot get them to display at all, and there is nothing in the documentation on how to display the foregin grid, it just shows the XML method.

More details

Table_1 is the master
Table_2 is the related items, which called on table_2_parent = table_1_id

when I look at an item in table_1, I can see the model is pulling in table_2.* using the foreign key and the record count is correct.

How to I list this foregin grid using the for / next loop? in my table_1 item?

Thanks for any assistance
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

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

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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started