Author Topic: CCPulse Tresholds and actions  (Read 5716 times)

Offline paulbudd

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
CCPulse Tresholds and actions
« on: February 25, 2008, 11:16:49 PM »
Hi, I am setting a field to RED when a duration in the NotReady state matures. All is fine the field goes red after the predetermined time but I now want the action to make it flash RED and not just be solid RED. Has anybody achieved anything like this ?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7511
  • Karma: 56330
Re: CCPulse Tresholds and actions
« Reply #1 on: February 25, 2008, 11:40:52 PM »
Not by default but maybe:

if time > threshold
 if mod % 2 == 0 then
    color=red
 else
    color=white

? Maybe?

Offline paulbudd

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: CCPulse Tresholds and actions
« Reply #2 on: February 25, 2008, 11:51:52 PM »
Thanks i'll give it a go.

JSB

  • Guest
Re: CCPulse Tresholds and actions
« Reply #3 on: June 09, 2008, 09:54:52 PM »
Not by default but maybe:

if time > threshold
 if mod % 2 == 0 then
    color=red
 else
    color=white

? Maybe?

Hi I am totally newbie in these things so I have a (stupid) question.

Where this code should be placed in CCP or to be precise, should I use a THRESHOLD wizard or ACTION wizard


Many thanks
JSB

tony

  • Guest
Re: CCPulse Tresholds and actions
« Reply #4 on: June 10, 2008, 12:42:48 AM »
- this is an Action, relevant to a Threshold, JSB...

Offline JSB

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: CCPulse Tresholds and actions
« Reply #5 on: June 10, 2008, 06:26:05 AM »
Ok I have spent 4 hours to find out how it should work and ... I give up :(

I wanted to created an action which will flash a cell in red when Calls Waiting is higher then 1. I set a treshold

if Threshold.StatValue >= 1 then
   Threshold.Result = true
end if

Then I set to it 2 Actions
CCPulseNotifier.SetColor( Color.white )

and the second
CCPulseNotifier.SetColor( Color.Red )

Well, it seems to work but only for a moment ie I see one flash - white and then red. And that's all, after that cell is solid red, no more flash.

I ll be greatful for some hints how to force CCP to constantly flash WHITE and RED when treshold gets set value.

Thanks in advance.



tony

  • Guest
Re: CCPulse Tresholds and actions
« Reply #6 on: June 11, 2008, 12:24:13 AM »
I'm thinking that you can havee it flash red - or white, not red and white....  Setting both as Actions against the same Threshold mean that the flash of white will only happen once, whilst the red then overrides that Action and it will continue to flash grey(brown)/red.

Tony

Offline S

  • Full Member
  • ***
  • Posts: 135
  • Karma: 1
Re: CCPulse Tresholds and actions
« Reply #7 on: June 11, 2008, 02:16:44 AM »
Tony, I don;t think it will work like that. In that case it would show only one color whichever is the first one. since ccpulse action thinks since the first condition is satisfied , I am doing this action and am done - it will not even go pass it.
We had same issue recently - one threshold with two color actions and only one color was seen on it.
If the numbers are changing frequently ... then you can set boundaries for the threshold and have one color action for each.
I mean
if Threshold.StatValue >= 1  and Threshold.StatValue < 2 then
   Threshold.Result = true
end if
set this for red color action

if Threshold.StatValue >= 2  and Threshold.StatValue < 3 then
   Threshold.Result = true
end if
set this for white color action

Regards,
S

tony

  • Guest
Re: CCPulse Tresholds and actions
« Reply #8 on: June 11, 2008, 03:52:25 PM »
Makes sense - I hadn't tried it out myself, so I had to - ermmm... "assume" (!)

Thnks for the clarification!

Tony