cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1058
Views
0
Helpful
6
Replies

Count element value reset

ted.gundrum
Level 1
Level 1

Hello all

I ran into a scenario where I needed to reset the count element in my Call Studio app.

I have done some checking and I can't seem to find any way to do this.

Does anyone know of a way to reset a Count element to a new starting value?

Thanks

1 Accepted Solution

Accepted Solutions

If you use the data tab of the Counter element to set the Element Data

(not Session Data) named 'count' to a value and select Create Before,

and press Add --

It's going to execute the data tab EVERY time you visit the Counter

element. So, it'll reset the counter every time it executes.

So you'd need to figure out a way around that - unless you want to reset

the count each time it executes, which seems to obviate the need for a

Counter element.

View solution in original post

6 Replies 6

hemal.mehta
Level 5
Level 5

Just reset the counter value to zero or any value using data tab of the standard voice elements depening on your flow or app modifier and select that element counter value to zero or any new starting value

I was using session data for the starting value, but after the first time through the counter the element just kept increasing by one based on the starting number.  When I would reset the session var to '1' nothing changed and it just kept going.  I am using v8.5.  I'll play around with resetting the data a little more and see if anything changes.

Why not just use a math element and session data?

If you want to use counter, the process I suggested works fine. I have tested it.  You can also use alternative option as suggested by Janine. I am not a big fan of counter element and use my own.

If you use the data tab of the Counter element to set the Element Data

(not Session Data) named 'count' to a value and select Create Before,

and press Add --

It's going to execute the data tab EVERY time you visit the Counter

element. So, it'll reset the counter every time it executes.

So you'd need to figure out a way around that - unless you want to reset

the count each time it executes, which seems to obviate the need for a

Counter element.

Janine

That worked.

I was looping through a preset batch of audio files and had to in increment the file's ID number by one each time then start over.  The file's ID number is stored in session data and by using the session data value in the counter's element data I was able to rest the loop when I rest the file sequence.

I was not using the Math element because it appended a '.0' on the end of its out put.

Thanks for the help everyone.