Multi-key tables and looping data saves
Posted: Wed Nov 28, 2012 2:48 am
Hi,
I have nutted out most of the basics and its all really good and logical, and now I have come to the crux of the application I am building.
I have a Client(ClientID PK), Course(CourseID PK) and a Unit(UnitID PK, CourseID FK).
I have to get all these into a table:
- ID
- ClientID
- CourseID
- UnitID
- Other Info fields
The issue is that I need to multi-select Clients based on grouping, select a Course and multi-select the sub-Units, then save these all back to the table structure.
This will mean that for 3 clients, doing 2 courses, there are 6 table writes.
I understand that this is impossible with out-of-box functionality, and that I will have to do the writes manually, and that's fine, I just need some guidance on how to create a Browse Subform/Search Subform that I can multi-select (like the in-box Delete Column) and feed those selections out into PHP.
Any help would be appreciated.
I have nutted out most of the basics and its all really good and logical, and now I have come to the crux of the application I am building.
I have a Client(ClientID PK), Course(CourseID PK) and a Unit(UnitID PK, CourseID FK).
I have to get all these into a table:
- ID
- ClientID
- CourseID
- UnitID
- Other Info fields
The issue is that I need to multi-select Clients based on grouping, select a Course and multi-select the sub-Units, then save these all back to the table structure.
This will mean that for 3 clients, doing 2 courses, there are 6 table writes.
I understand that this is impossible with out-of-box functionality, and that I will have to do the writes manually, and that's fine, I just need some guidance on how to create a Browse Subform/Search Subform that I can multi-select (like the in-box Delete Column) and feed those selections out into PHP.
Any help would be appreciated.