I would like to get some ideas on how others are handling the following situation, I am sure many have dealt with this.
You have a drop down datawindow that displays codes, the drop down has the code value and its description. The code value is what is saved to the database and the description is what the user sees on the screen. The codes also have an active/inactive flag used for indicating if the code is valid/invalid or used/no longer used. In the parent datawindow ideally you would like to display the description regardless if it is active or not which means on the dddw side all codes would need to be retrieved. (If its not retrieved then the code value and not the description is what shows on the parent datawindow) The issue is when a user changes the code they should only be able to select "active" codes OR the current code (regardless if it was Active/In Active) that was originally retrieved in case they changed the code and need to revert back to the original one. Ideally it would be great to see only "active" codes and the original code in the DDDW. I know there are several ways to achieve this but what would be the simplest solution without a lot of coding and make it automated so that it can be part of some inheritance so that your not coding for every dddw situation.
I would like to here how people have come up with solutions to this issue.
Thanks for everyone's time and looking forward to seeing different ideas.
Dave V.
Adding an additional issue. The parent datawindow may display 1 to many rows so that if you retrieve/filter for a row it may effect what is displayed on the other rows.