Welcome, Guest
Username: Password: Remember me

TOPIC: Need a reminder

Need a reminder 23 Sep 2012 18:30 #3922

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
Last Edit: 23 Sep 2012 18:31 by MorganL.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
Last Edit: 24 Sep 2012 13:17 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL

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

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 15
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
The administrator has disabled public write access.
Time to create page: 0.067 seconds

Get Started