11-09-2011 06:09 AM - edited 03-14-2019 08:51 AM
I'm using UCCX 7.01 -
We are implementing a Pay By Phone solution. When we ask the customer for their statement number the number must be sent to our webservice in the format of 3 integers. So basically if a customer enters in "3" the system must be able to convert it to "003" also if the customer enters in "03" the system must convert it to "003." If "13" is entered then it gets converted to "013" and so on....
We do have a consultant who is engineering the Pay by Phone solution but before the project kicks off we internally would like to ensure that UCCX can do the above. Any ideas?
Thanks.
Solved! Go to Solution.
11-09-2011 06:42 AM
Hi,
yes, you can do that - UCCX scripts can be enhanced with Java code so it's fairly simple to do such formatting as well.
You can do it either the poor man's way: first checking the length of the string entered by user and then pad it with zeros, or just use String.format (but this won't support non-numeric DTMF tones) or you can just import Apache Commons StringUtils and let it do the hard work.
G.
11-09-2011 06:42 AM
Hi,
yes, you can do that - UCCX scripts can be enhanced with Java code so it's fairly simple to do such formatting as well.
You can do it either the poor man's way: first checking the length of the string entered by user and then pad it with zeros, or just use String.format (but this won't support non-numeric DTMF tones) or you can just import Apache Commons StringUtils and let it do the hard work.
G.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide