⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

can i display multiple record types together in a single view?



Amanda
  • profile picture
  • Member

Posted 09 November 2012 - 17:36 PM

Hello everyone

Using the examples that come with the download, I've got 2 record types: Offices and Employees. There is a relationship between them.

I've got my Offices controller doing its job. I've got my Employees controller doing its job. Everyone is happy.

I found this post in the forum (/topic/93-masterdetails-forms-with-grocery-crud/#entry432) showing how to add a link from the Offices view to the Employees view that only shows employees from that office.

Is there a way (probably with a new controller) to display them together in a parent/child hierarchy? I know I can use core CI db->get but how can I display all the data in the same themed table that everything else uses?

Any help is appreciated!
Thanks
Amanda