Hello,
I'm grinding my brain on how to approach this application challenge.
(Please see attached image)
The form works like this... #1, select a parent record (strategic priority). #2, select second parent record (committee/department), step #3 select appropriate additional properties (emphasis areas), #4 add title, description, then press add/insert record...
The way the insert happens is a record is inserted into a bridge table, with autoincrement pkeyID and the two Fkeys of the parents in steps 1 and 2.
Then, a routine runs that regets the pkeyID just inserted (backend is sql server using identity) and then uses that pkeyID to insert more child records in a separate bridge table using the new pkeyID (as a fkey) along with the IDs of the selected items in step #3. This part works just fine.
I run into a snag when I wish to update this record...
Currently when the new Objective is selected it shows in another listbox the child records that are associated with it in step #3. (the grey list box to the right of the Objective Title, description etc.)
What I want to do? If I could wave a magic wand...?
I want to be able to pre-select the items in the multi select in step #3 when I double-click on the Objective records.
Generally the way that folks update records in this app is to double click on the record they wish to update, and from the values in the listbox, the text entry areas are filled with the values of the record. Upon update button those text entry areas are resent to the record to update the record's columns.
But, I don't have a way to insert more (or less) of the selected items in #3.
Question1: How do I process the items that are shown in #3, pre-selecting the ones that are are currently associated with the (circled) Objective.
Question2: Any thoughts on how to go about adding or removing the Emphasis Areas that are currently associated with the Objective? e.g., I double click the Objective1 record to load up the text entry boxes (already hapenning), which magically (my problem) auto selects the sub set of items from the grey listbox in the listbox in #3.
If the user were to deselect an item, or select an additional item, how can I teach the program to "know this" so I can remove or add another child record?
I hope this is clear.
Thanks for any ideas/help on any parts of this.
Thanks!
-Matt G.
I'm grinding my brain on how to approach this application challenge.

(Please see attached image)
The form works like this... #1, select a parent record (strategic priority). #2, select second parent record (committee/department), step #3 select appropriate additional properties (emphasis areas), #4 add title, description, then press add/insert record...
The way the insert happens is a record is inserted into a bridge table, with autoincrement pkeyID and the two Fkeys of the parents in steps 1 and 2.
Then, a routine runs that regets the pkeyID just inserted (backend is sql server using identity) and then uses that pkeyID to insert more child records in a separate bridge table using the new pkeyID (as a fkey) along with the IDs of the selected items in step #3. This part works just fine.
I run into a snag when I wish to update this record...
Currently when the new Objective is selected it shows in another listbox the child records that are associated with it in step #3. (the grey list box to the right of the Objective Title, description etc.)
What I want to do? If I could wave a magic wand...?
I want to be able to pre-select the items in the multi select in step #3 when I double-click on the Objective records.
Generally the way that folks update records in this app is to double click on the record they wish to update, and from the values in the listbox, the text entry areas are filled with the values of the record. Upon update button those text entry areas are resent to the record to update the record's columns.
But, I don't have a way to insert more (or less) of the selected items in #3.
Question1: How do I process the items that are shown in #3, pre-selecting the ones that are are currently associated with the (circled) Objective.
Question2: Any thoughts on how to go about adding or removing the Emphasis Areas that are currently associated with the Objective? e.g., I double click the Objective1 record to load up the text entry boxes (already hapenning), which magically (my problem) auto selects the sub set of items from the grey listbox in the listbox in #3.
If the user were to deselect an item, or select an additional item, how can I teach the program to "know this" so I can remove or add another child record?
I hope this is clear.

Thanks for any ideas/help on any parts of this.
Thanks!

-Matt G.