Tech Note: Filtering employee timesheet reports to specific roles or groups - Technology Forum - Home Theater, Computer, Televisions, Personal Electronics and more!
Technology Forum -  Home Theater, Computer, Televisions,  Personal Electronics and more!  
Go Back   Technology Forum - Home Theater, Computer, Televisions, Personal Electronics and more! > Technology Lounge > Technology Forum Technical Support
User Name
Password


Reply
 
LinkBack Thread Tools Display Modes
Old 07-12-2011, 09:23 AM   #1 (permalink)
Junior Member
 
Join Date: Jul 2011
Referrals: : 0
Posts: 1
Points: 705.43
Bank: 0.00
Total Points: 705.43
Default Tech Note: Filtering employee timesheet reports to specific roles or groups

Employee timesheet reports (e.g. Employee Hours, etc.) do not have a built-in filter for limiting the employee records returned to specific roles (permission levels) or reporting groups. But you can do this easily by creating a custom filter using SQL. To limit employee records to a particular named role you can use something like the following SQL custom filter:
t_user.roleid IN (select id from t_role where name='Employee')
To limit employee records to a particular named reporting group you would use something like the following SQL custom filter:
t_user.groupid IN (select id from t_group where name in ('Group 001','Group 002'))
To exclude a role or group you would use NOT IN instead of IN in the above expressions. You don't have to be a SQL guru to use custom filters, but it helps to know the basics. An excellent source for information can found at W3 Schools (http://www.w3schools.com/sql).

Jason Trend
Pacific Timesheet
http://www.pacifictimesheet.com
jasontrend is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 15.00
Points Per Reply: 5.00


» Links

» Links


Football Forum | Basketball Forum | Hockey Forum | Baseball Forum | Soccer Forum | Golf Forum | Lacrosse Forum
Wrestling Forum | Boxing Forum | MMA Forum | Paintball Forum | Snowmobile Forum | Snowboarding Forum | PWC Forum


Copyright (C) Verticalscope Inc Search Engine Optimization by vBSEO 3.3.2