Looking for some feedback on if there is a well known approach for this. Please note that my graphics are just for example and look much worse in the actual application.
A user has the authorization of Data Entry. They are going to be entering data for table Container
Container
---------
int ContainerId
string Name
string Description
There are many Containers in the table already. Instead of making the data entry user search around to see if a container exists for every entry, I was thinking about using a compare and confirm page. The process would go something like this:
Step 1, "Add": Data Entry
-----Enter A New Container------------
| |
| Name |
| [_____________] |
| |
| Description |
| [_________________________] |
| |
| [Add Container] |
--------------------------------------
Step 2, "Compare": On Add Container click, server side collect a list of entries with the same name (if there are any at all). If a same name and description exists, return to a new entry form. If there is no name match at all, add the entry to the database. If there are name matches and the previous two conditions have not been met then display the list of similar named matches:
Existing Containers
Name Description
---------------------------------------------------
| Empty Box A Box with nothing in it. |
| Empty Box A Box half empty. |
---------------------------------------------------
-----Container To Add-----------------
| |
| Name |
| [_Empty Box___] |
| |
| Description |
| [_A Box half full_________] |
| |
| [Confirm] |
--------------------------------------
Step 3, "Confirm": Commit new container to database.
Is there a better, or more common, approach to this process?