Adding Results

Results 1 to 3 of 3

Thread: Adding Results

  1. #1
    Devioux Guest

    Default Adding Results

    Is there a way to add rs results using JS? I am getting a percent of time spent on function result for 5 different employees and I then want to add those together and divide by 100 to get the actual number of employees that function required.<BR><BR>Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: Adding Results

    Save each of your function results as element of an array. Then loop through the array and add each member to a total variable and divide the variable.<BR>If this is something you use a lot, I would set up a custom Javascript object and make the calculation a method of the object.

  3. #3
    Devioux Guest

    Default Thanks!

    Rock on!! Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts