⚠ 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

Combining a form with sub form



yepwingtim
  • profile picture
  • Member

Posted 22 February 2012 - 21:08 PM

I have a patient with multiple visit dates. These are my table.

patient
-----------
patient_id
patient_name

patient_visit
------------
patient_visit_id
patient_id
patient_visit_date

is it possible to display 1 form with patient being the main form, and
patient_visit being the subform so i can put multiple values in?

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 22 February 2012 - 23:46 PM

For now, you are not able to do this think with grocery CRUD. Though @staveoc has created a great extension that do this exact thing. You can see his post : /topic/75-multi-list-hack-chaining-crud-forms-together/ and /topic/77-multi-list-hack-chaining-crud-forms-together/ . He also has his repository at: https://github.com/steveoc64/grocery-crud

vnt
  • profile picture
  • Member

Posted 23 February 2012 - 15:35 PM

This extension will be integrated into the new version of Grocery Crud?

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 23 February 2012 - 19:24 PM

We do are best to merge it. The next version 1.2 will not have @staveoc's feature. The merge (if it will be a merge) will be after the release.