mcyrulik Posted December 26, 2007 Posted December 26, 2007 Hey everybody. I have a list of employee records. Because of the way that our payroll system is set up, each employee has 9 records in this table. The table consists of the Employee ID, their name, an earnings code(that is used by our payroll system), and a number(the amount of time in this earnings code) - to name a few. When looking at this list, it is sorted so that all the records associated with an employee are grouped together. What I would like to do is color the groups of records, similar to alternating the backgrounds of a portal row or list view. I can color them no problem, but what I can't figure out is how to tell my calculation that the last group was green, so this group should be red - then green, then red, and so on. Any thought?
VICH Posted December 26, 2007 Posted December 26, 2007 assign each employeeID its own color...that way regaurdless of the order the colors are always different just a thought though B)
comment Posted December 26, 2007 Posted December 26, 2007 If it's always 9 records in a group, you could use: Mod ( Div ( Get ( RecordNumber ) - 1 ; 9 ) ; 2 )
mcyrulik Posted December 26, 2007 Author Posted December 26, 2007 VICH: thanks, I toyed with that, but with 260 employees, that would suck for me.. Comment: Thanks! Works perfectly.
Recommended Posts
This topic is 6248 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now