I have a servicesystem ("jobs" table) where client servicejobs are registrated. In this system the clients name are entered, and also the postalno for the area the job are to be done. Based on the entered postalno a dropdown are filled with all the persons that can be assigned to do a job in the selected postalno area.
So i have a databasetable "persons" with persons. These are the persons can be assigned to jobs. And every person serves multiple postalno's areas.
And here is the thing, i am not sure whats the best way to do this, so i ask for your opinion.
As i see it i have two ways to solve this:
1. I can have a "person-jobs" table related to the persons table. Here i can enter each postalno that this person operates in. When creating a form for this it seems to be quite a job to add all the postalno's for each person. This way i have to add record by record for each new postalno.
2. Use lists (i belive i noticed there was a defined fieldtype for this). If i can use two lists, one with all the postalnos and the other list with the selected postalno's this will be in the same form (and not in a persons-job table). This will make the adding easyer for the user.... which strikes me as more appealing. But here is what i am thinking, if i use this option will it be possible to do a lookup to find the correct persons by using a cascadingdropdown (the same way as i do if i use method 1) ?
Basically my question is:
What is the best way to add these postalno's for each person? And if it is option 2, - can i easily do a lookop in this field to find the persons ?
Hope to hear your opinions, thanks
So i have a databasetable "persons" with persons. These are the persons can be assigned to jobs. And every person serves multiple postalno's areas.
And here is the thing, i am not sure whats the best way to do this, so i ask for your opinion.
As i see it i have two ways to solve this:
1. I can have a "person-jobs" table related to the persons table. Here i can enter each postalno that this person operates in. When creating a form for this it seems to be quite a job to add all the postalno's for each person. This way i have to add record by record for each new postalno.
2. Use lists (i belive i noticed there was a defined fieldtype for this). If i can use two lists, one with all the postalnos and the other list with the selected postalno's this will be in the same form (and not in a persons-job table). This will make the adding easyer for the user.... which strikes me as more appealing. But here is what i am thinking, if i use this option will it be possible to do a lookup to find the correct persons by using a cascadingdropdown (the same way as i do if i use method 1) ?
Basically my question is:
What is the best way to add these postalno's for each person? And if it is option 2, - can i easily do a lookop in this field to find the persons ?
Hope to hear your opinions, thanks