Avatar

Level 2

Yes, Steve Walker, did a fantastic job in assisting me with the answer to this problem. I was amazed at the quickness he provided an answer and was willing to look at my original document. My solution involved calcuation the hourly pay based on the salary,  round the hourly pay and then calculate the pay period off of the rounded hourly pay. Below is his solution

Salary--->  using exit, java script, client

               perHour.rawValue = (salary.rawValue) / (2080);

perHour----->  no code necessary, but you do need to change validation and disply values, refer to note below

payPeriod---->  using calculate, form calc, client

                         $ = Round(perHour, 2) * 80

          //this allowed for my payPeriod to be calcualted from the rounded number of the perHour object, which makes a big difference in a 100,000k salary

Note: when an object has been set to Value>Type>Calculated - Read Only the Validation Pattern button is disabled.  You can temporaritly enable the validation Pattern button by changing to Value>Type>User Entered - Optional.  Add the pattern(s) and set the Value>Type back to Calcualted Read Only.