Janine Graves | Because the counter is element data, there's no way to reset the counter within the same phone call (unless you use Java and create a 'Dynamic Configuration').
Instead, you can create a session variable named myCounter, with initial value 0 in some element's data tab (name the element 'initMyCounter'
To increment the counter, use the Math element. Tell it to store the result of the math operation into 'Session data' named 'myCounter' (don't use quotes) set the expression to {Data.Session.myCounter}+1
Then to reset the counter, revisit the 'initMyCounter' element.
Janine
Cisco Developer Community Forums wrote: > CHARLES SMITH has created a new message in the forum "General > Discussion - All Versions": > > -------------------------------------------------------------- > When you utlilize the Counter element that is built into CVP you have > to set an inital count on the properties of that element. If you > revisit that counter the inital count is ignored and it increments > from the inital count when you first visited the elemenet. How do you > reset this so you can set the inital count again if you revist the > element in the same session? > Â > Â > -- > To respond to this post, please click the following link: > > <http://developer.cisco.com/web/cvp/forums/-/message_boards/message/1302064> > > or simply reply to this email. |
| Please sign in to flag this as inappropriate. |