" /> CCPulse 7.5.001.06 State Object - Genesys CTI User Forum

Author Topic: CCPulse 7.5.001.06 State Object  (Read 3139 times)

Ilias

  • Guest
CCPulse 7.5.001.06 State Object
« on: July 01, 2008, 01:22:42 PM »
Advertisement
Hello there,

i have a problem with 2 Custom CCPulse Formulas.

1: In the First Formula i am replacing Number Values from a Statistic to Text.
2: In the Second Formula i am reading the State Object for Agent.

BUT,

if i am using Both at once the State.type is returning blank.
If i put into the 1st Furmula a Hardcodet String the State.type returns "AgentState" as i wont.

What i am dooing wrong ?

2 Furmula:
------------------------------
result.Text = GetAgentState();
function GetAgentState()
{

if(state.type != "AgentState")
return "n/a";
var r = state.Status;
for(var e = new Enumerator(state.DNs); !e.atEnd(); e.moveNext())
{ r += GetDNState(e.item()); }
return r;
}
1. Formula
----------------------------
if (ccpulse.Hide.statistic("Agent_Thema_AMT 1") >0) {"Verfügbar"}
else if (ccpulse.Hide.statistic("Agent_Thema_AMT 1") ==0) {"nicht Verfügbar"}
else {"n/a"};


pls help.