AndrewFry
5 years agoQrew Assistant Captain
Setting up Notes
I previously set up a group of related Notes tables, and it seemed to work fine, but there were a few nuances that I didn't particularly like. So I am rebuilding it from the ground up and had a few questions.
FYI: Long read ahead.
The way I previously set it up is the following:
In the Note Subject form, I can select one Note Type from the dropdown and one Note Subject from the dropdown.
A single Note Type can have multiple Subjects related to it, eg:
However, a single Note Subject can be used in many different Note Types, eg:
I have thought about a number of different ways to accomplish the desired outcome, being that I have a Note Type and Note Subject in the Notes form with the subject being conditional of the type, but to do it in a cleaner manner (aka Best Practice). I have been kind of focused on Best Practice as of late and would like to ensure I am following it, not only for user experience, but for future development purposes. Just because something works now, doesn't mean it will be simple to follow in the future if this is ever handed off to someone else. I want to avoid that and ensure it is simple to follow so that development can continue if needed.
I believe best practice would be the following, but not really sure:
My first thought is to have the Type in the Note Types table be a Text field and input all the different types. I would also have the Subject in the Note Subject be a Text field. However, if I understand things correctly, by doing that and because a Type can have multiple Subjects, and a Subject can be used by multiple Types, I would need to establish a Many-to-Many table for the Note Types and Note Subjects. I would then need to relate that M:M table to the Notes table and set the conditional parameters .....
Any thoughts/ideas on the above, would it work, is there a better way to go about doing this? Is the way I originally set it up perfectly acceptable (I guess that might be subjective)? Suggestions? Recommendations?
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------
FYI: Long read ahead.
The way I previously set it up is the following:
- 3 Tables:
- Notes
- Note Types
- Note Subjects
- Relationships:
- Note Types < Note Subjects
- Note Types < Notes
- Note Subjects < Notes
- Note Types table - field:
- Type
- Text - Multiple Choice
- Type
- Note Subjects table - field:
- Subject
- Text - Multiple Choice
- Subject
In the Note Subject form, I can select one Note Type from the dropdown and one Note Subject from the dropdown.
A single Note Type can have multiple Subjects related to it, eg:
- Job (Type)
- General
- Left Message
- Paint Sample
- Parts
- Pictures
- Quality Control
- etc
- etc
However, a single Note Subject can be used in many different Note Types, eg:
- General (Subject)
- Assignment
- Client
- Contact
- General
- Job
- Location
- etc
- etc
I have thought about a number of different ways to accomplish the desired outcome, being that I have a Note Type and Note Subject in the Notes form with the subject being conditional of the type, but to do it in a cleaner manner (aka Best Practice). I have been kind of focused on Best Practice as of late and would like to ensure I am following it, not only for user experience, but for future development purposes. Just because something works now, doesn't mean it will be simple to follow in the future if this is ever handed off to someone else. I want to avoid that and ensure it is simple to follow so that development can continue if needed.
I believe best practice would be the following, but not really sure:
My first thought is to have the Type in the Note Types table be a Text field and input all the different types. I would also have the Subject in the Note Subject be a Text field. However, if I understand things correctly, by doing that and because a Type can have multiple Subjects, and a Subject can be used by multiple Types, I would need to establish a Many-to-Many table for the Note Types and Note Subjects. I would then need to relate that M:M table to the Notes table and set the conditional parameters .....
Any thoughts/ideas on the above, would it work, is there a better way to go about doing this? Is the way I originally set it up perfectly acceptable (I guess that might be subjective)? Suggestions? Recommendations?
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------