Customize "add existing records" in a relationship
Posted: Fri Oct 23, 2009 2:47 pm
I have two tables, Assets and Events, which have a many-to-many relationship, which is maintained in the table asset_event as follows:
Table Asset (id, Name, Year)
Table Event (id, Name, Year) (event's year is not necessary the same as its associated assets)
Table asset_event (a_id, e_id)
Problem: We have a lot of events and this causes inconvenience when a user chooses to add existing related Event records, because he/she needs to go through a long list of events.
It would be much easier if the user is given the choice to jump, say, in decades. For instance, there can be a select list for the user to choose which decade he/she wants to see. Depending on which item the user chooses, respective events in that decade are shown.
Do you guys know how we can go about achieving this? Any pointer is much appreciated.
Thanks a bunch guys.
Tim
Table Asset (id, Name, Year)
Table Event (id, Name, Year) (event's year is not necessary the same as its associated assets)
Table asset_event (a_id, e_id)
Problem: We have a lot of events and this causes inconvenience when a user chooses to add existing related Event records, because he/she needs to go through a long list of events.
It would be much easier if the user is given the choice to jump, say, in decades. For instance, there can be a select list for the user to choose which decade he/she wants to see. Depending on which item the user chooses, respective events in that decade are shown.
Do you guys know how we can go about achieving this? Any pointer is much appreciated.
Thanks a bunch guys.
Tim