Okie Dokie,
I have the following formula called @TimeCalc:
//Variable to hold in and out subtraction
Numbervar ECRTimeCalc;
//Take Log Out time and Subtract the Log In Time
if previous({sc42uact.option}) = "Application Entered" AND {sc42uact.option} = "Application Exited" then timevalue({sc42uact.date_time} - previous({sc42uact.date_time}))
I want to sum that information, so I convert the fields to seconds for adding, which works fine with my @ConvertTimeToSeconds formula:
local numbervar hours;
local numbervar minutes;
local numbervar seconds;
local numbervar totaltime;
// Convert the hours to seconds by multiplying by
// 3600
hours := hour({@TimeCalc}) * 3600;
// Convert the minutes to seconds by multiplying by
// 60
minutes := minute({@TimeCalc}) * 60;
seconds := second({@TimeCalc});
//add up all the seconds
hours + minutes + seconds;
However, I get the "the summary / running total field could not be created" error when I try to run the following simple formula called @TimeSum:
if {@ConvertTimetoSeconds} <> 0 then
Sum ({@ConvertTimetoSeconds},{sc42uact.user})
Anyone know where I'm going wrong?
I have the following formula called @TimeCalc:
//Variable to hold in and out subtraction
Numbervar ECRTimeCalc;
//Take Log Out time and Subtract the Log In Time
if previous({sc42uact.option}) = "Application Entered" AND {sc42uact.option} = "Application Exited" then timevalue({sc42uact.date_time} - previous({sc42uact.date_time}))
I want to sum that information, so I convert the fields to seconds for adding, which works fine with my @ConvertTimeToSeconds formula:
local numbervar hours;
local numbervar minutes;
local numbervar seconds;
local numbervar totaltime;
// Convert the hours to seconds by multiplying by
// 3600
hours := hour({@TimeCalc}) * 3600;
// Convert the minutes to seconds by multiplying by
// 60
minutes := minute({@TimeCalc}) * 60;
seconds := second({@TimeCalc});
//add up all the seconds
hours + minutes + seconds;
However, I get the "the summary / running total field could not be created" error when I try to run the following simple formula called @TimeSum:
if {@ConvertTimetoSeconds} <> 0 then
Sum ({@ConvertTimetoSeconds},{sc42uact.user})
Anyone know where I'm going wrong?