Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Ilias on July 01, 2008, 01:22:42 PM
-
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.