Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: genesys_newbie on August 22, 2011, 10:52:35 PM

Title: CCPulse formula to display current time in acw state
Post by: genesys_newbie on August 22, 2011, 10:52:35 PM
Hello All!

I'm relatively new to the world of CCPulse, and have a question which I was hoping someone might be able to help.

We currently have a CCPulse template which shows the not ready reason code in a column

So the Column is call Not Ready Reason Code and a value might be Lunch.

What I need to add is the current time the agent is in that state, (not a cumalative total) so if they change from lunch to toilet it would re-set to 0.

So The column should show the value Lunch 00:12:23 and that would re-set to 0 and count again if they change to another walkaway code.

Any Ideas?

Any Help would be much appreciated :)

Thanks

Title: Re: CCPulse formula to display current time in acw state
Post by: cavagnaro on August 22, 2011, 10:55:24 PM
Same idea and statistic only that instead of TotalTime use CurrentTime
Title: Re: CCPulse formula to display current time in acw state
Post by: genesys_newbie on August 22, 2011, 10:57:36 PM
Thanks Cav,

So the current formula looks something like, what would I need to add?

if (ccpulse.group("Withdrawn").statistic("Break")>0) {"Break"}
else if (ccpulse.group("withdrawn").statistic("Training")>0) {"Training"}
else if (ccpulse.group("withdrawn").statistic("Meeting")>0) {"Meeting"}
else if (ccpulse.group("withdrawn").statistic("Lunch")>0) {"Lunch"}
Title: Re: CCPulse formula to display current time in acw state
Post by: Tambo on August 24, 2011, 01:26:36 PM
Hi Brian,

make a new column for a formula then add in.............

result.Text = CalculateReason();



function CalculateReason()

{


if (ccpulse.CurrentState.statistic("NotReady 1-2-1")>0)
  {
  var d = ccpulse.CurrentState.statistic("NotReady 1-2-1")
  var h = Math.floor(d / 3600);
  var m = Math.floor(d % 3600 / 60);
  var s = Math.floor(d % 3600 % 60);
  var f = ((h > 0 ? h + ":" : "") + (m > 0 ? (h > 0 && m < 10 ? "0" : "") + m + ":" : "0:") + (s < 10 ? "0" : "") + s);
  return " NotReady 1-2-1 (" + f + ")";
  }

and just keep adding to it, then hide your not ready columns and you have one column showing you current not ready status'  ;D
Title: Re: CCPulse formula to display current time in acw state
Post by: genesys_newbie on August 24, 2011, 05:45:17 PM
Sorted  ;D there was a problem with my else if's!

Thanks for your help Tambo