interactive | editorial | code | resource 
Demonstrations > Advanced Demonstrations > Employee Example
 

Viewing the Employees Table as Andrew Fuller.

Displayed below is Andrew Fuller's record and the Employees for whom he is their Line-manager. Andrew can...

  • Edit any of the Employees who have him as their Line-Manager
  • View his record (it doesn't hold any sensitive information)
  • Add an Employee with himself set to the Line-Manager

Feel free to try any of the above options.

Results
First NameLast NameHire Date
AndrewFuller11113/09/1992
dssvdsv 13/09/1992
fgfgfgfg14/02/2007
< >
Search
Enter Text:

Advanced
Territory
Hire Date
Start Date
<July 2010>
MonTueWedThuFriSatSun
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
End Date
<July 2010>
MonTueWedThuFriSatSun
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678
Setting the WhereClause to
"(Employees.EmployeeID = 2 OR Employees.ReportsTo = 2)"
in the SearchingEventArgs in the OnSearching event,
filters the results so you only see the Employees
you are in-charge of and yourself in the results.

   

 
Demonstrations > Advanced Demonstrations > Employee Example