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

TOPIC:

Need a reminder 23 Sep 2012 18:30 #3922

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
Been a LONG day coding, and I am making basic mistakes and need a gentle pointer. I have spent most of my day creating a fault logging tool on a smartphone for demo purposes at work, and am throwing a simple backend together to admin the reports.

Just doing some testing, and I have the simplest of app.. 2 tables

Fault
Comment

I have done basic views for both, a grid and an item editor.

Comment has a foreign key pointing at Fault, and simply uses the ID of the fault as the foreign id.. so each fault can have multiple comments.

I want to alter the view of the fault item so that it has a grid that shows associated comments.

I am sure its as simple as switching the model in the view.html file for the fault item, and copying the grid from the comments and calling it in the default.php file... but my mind wont work due to lack of sleep thanks to the 4am party next door.

Can someone just advise how I can link this grid in my related item view. Thanks

If I was using my old framework, I would have this nailed as I have done it many times but still not 100% at one with the code generated by J-Awesome-Cook.
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.

Last edit: by MorganL.

Re: Need a reminder 24 Sep 2012 13:17 #3949

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I should write a little doc for that...

Here the solution :
www.j-cook.pro/forum/9-coding-inside-you...ted-table--item#3804
Coding is now a piece of cake
The following user(s) said Thank You: MorganL

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

Last edit: by admin.

Re: Need a reminder 24 Sep 2012 15:52 #3967

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
I will go through that thread in detail later.. This routine is something I am going to need heavily in my 3 ongoing apps. Thanks
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.054 seconds
  This is really a brilliant service. I'm sure it will become very popular and bring you a lot of well deserved success. Congratulation !
Scott (scott717 - Forum)

Get Started