I am trying to configure a pair of listboxes to allow transfer. The user interface side works, but no changes are written to the database. Here's the scenario;
Three tables, Communications, Contacts, and CommunicationContacts. Each communication has zero or more contacts associated with it, defined as rows in the CommunicationContacts table. The CommunicationContacts table has three fields; primary key, CommunicationID and ContactID, with appropriate relational integrity. What I want to do is show two listboxes; one containing the names of the people who are selected (from the Contacts table, via a lookup), and a list of names of people who aren't selected. I have the logic of the queries, but what i want is when I add a name from the UNSELECTED to the SELECTED list, I want a row to be added to the CommunicationContacts table. Likewise when I remove a name from teh selected list, I want that row to be removed from the CommunicationContacts table.
I have the page set up and working using object data sources, with update and delete actions defined, the transfers are appearing properly, but no db changes are recorded.
Can anyone provide me with an example of a working page where two related listboxes are used and the changes are saved?
Thanks in advance.
Three tables, Communications, Contacts, and CommunicationContacts. Each communication has zero or more contacts associated with it, defined as rows in the CommunicationContacts table. The CommunicationContacts table has three fields; primary key, CommunicationID and ContactID, with appropriate relational integrity. What I want to do is show two listboxes; one containing the names of the people who are selected (from the Contacts table, via a lookup), and a list of names of people who aren't selected. I have the logic of the queries, but what i want is when I add a name from the UNSELECTED to the SELECTED list, I want a row to be added to the CommunicationContacts table. Likewise when I remove a name from teh selected list, I want that row to be removed from the CommunicationContacts table.
I have the page set up and working using object data sources, with update and delete actions defined, the transfers are appearing properly, but no db changes are recorded.
Can anyone provide me with an example of a working page where two related listboxes are used and the changes are saved?
Thanks in advance.