I guess most users will add a new employee after they checked the list. So when users have the list filtered by criteria A and they don't find a certain employee there, it's likely that they'd want to add an employee that falls under the same criteria.
If that's the case, there is no problem: the new employee will be listed in the current filter.
If that's not the case, there might be 3 reasons for this:
- mistake: the user applied a wrong filter AND/OR the entered data is wrong
- → desirable: inform the user
- multi-tasking: the user browses the list and suddenly gets the idea to add a new employee (not necessarily related to the current filter)
- → desirable: don't change the filter
- unrelated: the user filtered the list for some other reasons, now the user is done with that task and goes to the next, unrelated task: add a new employee.
- → desirable: show unfiltered list resp. switch to filter that shows the new employee
In all cases you should display a success message: "Added new employee XY
"
This message could offer additional information/links, like:
1.:
-----------------------------------------------
| Added new employee John Doe [show details] |
-----------------------------------------------
2.:
-----------------------------------------------
| Added new employee John Doe [hide details] |
| |
| Name: John Doe [edit] |
| Age: 42 [edit] |
| Position: Intern [edit] |
| |
| [→ jump to John Doe in the list] |
| |
-----------------------------------------------
If the user clicks at "→ jump to John Doe in the list" (wording should be improved, probably), the list shows all users (or the filter that applies to John Doe) and John Doe is highlighted and focussed on.