Relation n:m in nuBuilder
Posted: Tue Sep 11, 2012 11:39 am
Hi,
I have some dubts working on a new project about technical manitenance and hope someone can give me some suggestions.
I have two table appointment and technician with relation n:m, so one technician can have zero or more appointments and one appointment can be fixed for one or more technicians.
In database I set three tables:
appointment
- app_id
- app_apt_id
- app_data
- app_time
technician
- tec_id
- tec_apt_id
- tec_name
appointment_technician
- apt_it
- apt_app_id
- apt_tec_id
When users insert a new appointment should have the possibility to assign one or more technician to that work, so I think to use appointment as primary table and technician in the subform.
In another form I can show all the appointments of a technician by placing a subform-appointmens on primary-technician-form.
Am I right?
The appointment_technician table must be managed by custom code in AfterSave tab or there are some shortcuts?
The second question in relative to app_time field in appointment table.
Can I insert a new format time that can be selected from the available formats in object format field on text tab?
All suggestions are welcome!
I have some dubts working on a new project about technical manitenance and hope someone can give me some suggestions.
I have two table appointment and technician with relation n:m, so one technician can have zero or more appointments and one appointment can be fixed for one or more technicians.
In database I set three tables:
appointment
- app_id
- app_apt_id
- app_data
- app_time
technician
- tec_id
- tec_apt_id
- tec_name
appointment_technician
- apt_it
- apt_app_id
- apt_tec_id
When users insert a new appointment should have the possibility to assign one or more technician to that work, so I think to use appointment as primary table and technician in the subform.
In another form I can show all the appointments of a technician by placing a subform-appointmens on primary-technician-form.
Am I right?
The appointment_technician table must be managed by custom code in AfterSave tab or there are some shortcuts?
The second question in relative to app_time field in appointment table.
Can I insert a new format time that can be selected from the available formats in object format field on text tab?
All suggestions are welcome!