Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

string to int conversion, in create generated prompt IPIVR

IPIVR v. 4.04

I have a script, where I get from ICM, an ECC variable in string format. I need to convert this string into an integer, so that I can play a dollar amount for the callers account balance. Everything that I am trying, doesn't seem to work! I didn't think a conversion was this difficult.

Thoughts????

11 REPLIES
Green

Re: string to int conversion, in create generated prompt IPIVR

Expression Editor. Simple Java.

Regards,

Geoff

New Member

Re: string to int conversion, in create generated prompt IPIVR

okay, so here is what I have in the expression editor, int.parseInt(lpamt)

The script is still throwing exceptions.

Re: string to int conversion, in create generated prompt IPIVR

It's actually Integer.parseInt("44") not int.parseInt("44")

HTH

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
Green

Re: string to int conversion, in create generated prompt IPIVR

Just checking - does your Java say:

int my_int = Integer.parseInt("44");

Regards,

Geoff

Re: string to int conversion, in create generated prompt IPIVR

You should try leaving the account balance as a string and playing the prompt as:

$[accountBalanceVariable]

There is simple TTS capabilities that speak dollar amounts.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
New Member

Re: string to int conversion, in create generated prompt IPIVR

leaving as string and using system for prompt failed. it played nothing.

the listed integer parse didn't work either.

Ultimately, I have a string variable, that I need to convert to SOME kind of integer/float/ whatEVER to use the create generated prompt step so that I can play the account balance. I just can't believe that I can't get anything to work! It won't convert, and all I can do is laugh now, because this should be SO simple. we're supposed to cut over and I can't believe I'm failing to provide because of a simple (so I thought) conversion from string to xx.

Re: string to int conversion, in create generated prompt IPIVR

This was just in another post recently....

Check page 3-159 of this document to see how currency Prompt literals work.

http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_5_0/programming/script_devp/express_lang/crs501lr.pdf

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
Bronze

Re: string to int conversion, in create generated prompt IPIVR

Hi Cherilynn1030

I put a demo out on 1-888-210-2798

give it a call, is this what you need?

attached is the script

CRS set steps cast easiliy I didn't need the expression editor.

used a double not an integer

Let me know how it goes,

*please rate all posts

Blair

Re: string to int conversion, in create generated prompt IPIVR

Too cool. Now you're making me want to get a toll free number for the same reason I got a domain name.

Thanks for your support in the forums.

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
Bronze

Re: string to int conversion, in create generated prompt IPIVR

Hey avholloway

n/p

I see your call or someone's

Your Java/CRS write up is excellent.

Blair

Re: string to int conversion, in create generated prompt IPIVR

Yep, that was me, from the 763 number.

Thanks. =)

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
286
Views
4
Helpful
11
Replies