CCE/CVP how to capture "*" in GetDigits vru script

Answered Question
May 21st, 2014
User Badges:

Hi,

 

Under the same Menu I have the need to ask for an extension and able to offer * to go back to the parent Menu. Apparently GetDigits() does not accept * so right now I had to remove * prompt option and have a different prompt for that using a Menu() VRU script.

How are you resolving these menus where more than 1 digit and a special character are required?

 

Thanks for your input

Isidro

Correct Answer by Jameson Gagnepain about 3 years 2 months ago

Isidro,

You are correct, the GD microapp does not accept * or # as "digits". How you work around this will depend a little on your usage...

  • Are you expecting variable-length digit entry?
  • Do you want to accept * at any point in the entry, or just at the beginning?

Your most flexible solution would involve scripting something in CVP Call Studio. If you'd like to stick entirely with MicroApps, here's a couple options...

If you only want to accept * at the beginning:

  1. Use an "M" script to play the prompt and get the first digit (or the *)
  2. Act on * if it's entered (perhaps with a CED node)
  3. Copy the CED to a call variable
  4. Use a "GD" script to get the remaining digits
  5. Concatenate previous result with new CED to obtain full digit string

If you need to be able to act on * at any point in the string, you can do a modified version of above, replacing the "GD" with another "M", and repeating steps 4-5 as necessary.

-Jameson

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Jameson Gagnepain Tue, 05/27/2014 - 13:30
User Badges:
  • Silver, 250 points or more
  • Community Spotlight Award,

    Member's Choice, March 2015

Isidro,

You are correct, the GD microapp does not accept * or # as "digits". How you work around this will depend a little on your usage...

  • Are you expecting variable-length digit entry?
  • Do you want to accept * at any point in the entry, or just at the beginning?

Your most flexible solution would involve scripting something in CVP Call Studio. If you'd like to stick entirely with MicroApps, here's a couple options...

If you only want to accept * at the beginning:

  1. Use an "M" script to play the prompt and get the first digit (or the *)
  2. Act on * if it's entered (perhaps with a CED node)
  3. Copy the CED to a call variable
  4. Use a "GD" script to get the remaining digits
  5. Concatenate previous result with new CED to obtain full digit string

If you need to be able to act on * at any point in the string, you can do a modified version of above, replacing the "GD" with another "M", and repeating steps 4-5 as necessary.

-Jameson

Isidro Fernandez Fri, 06/06/2014 - 19:37
User Badges:

Thanks Jameson for your input, I concatenated 4 Menu Microapps without a prompt and worked perfectly.

 

cheers

Isidro

Actions

This Discussion

Related Content