<div dir="ltr"><div><div><div><div><div><div><div><div><div>Sorry I didn't see this sooner, as this would have been a good opportunity to explain variables, <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.10.5">String literals</a>, and <a href="http://java.about.com/od/c/g/concatenation.htm">http://java.about.com/od/c/g/concatenation.htm</a>String concatenation.<br>
<br></div>The answer is double quotes around your String literal with String concatenation to the caller's input variable:<br><br><div style="margin-left:40px"><span style="font-family:courier new,monospace">Set extXferFinalNumber = "3456" + extXferResult</span><br>
</div><br></div>You were very close with the quotes, only you used single quotes instead of double quotes, and in Java a String literal is enclosed in double quotes.<br></div><br></div>The expression is evaluated on the right side of the equal sign first ("=").<br>
<br></div><div><div style="margin-left:40px"><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Set extXferFinalNumber = </span><span style="color:rgb(255,0,0)"><span style="background-color:rgb(255,255,255)">"3456" + extXferResult</span></span></span><br>
</div><br></div><div>extXferResult is replaced by its value, which I assume comes from the caller's input. Let's pretend they entered "100".<br><br><div style="margin-left:40px"><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Set extXferFinalNumber = </span>"3456" + <span style="color:rgb(255,0,0)">"100"</span></span><br>
</div><br></div><div>The two String literals are then concatenated together.<br><br><div style="margin-left:40px"><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Set extXferFinalNumber = </span><span style="color:rgb(255,0,0)">"3456100"</span></span><br>
</div><br></div><div>Now the equal sign shows its true meaning: assignment operator. The evaluated expression result is now assigned to the variable extXferFinalNumber.<br><br><div style="margin-left:40px"><span style="font-family:courier new,monospace">Set extXferFinalNumber <span style="color:rgb(255,0,0)">=</span> "3456100"</span><br>
</div><div style="margin-left:40px"><span style="font-family:courier new,monospace"></span></div><span style="font-family:courier new,monospace"><br></span>At this point the Set step is now complete and your variable extXferFinalNumber holds the complete 7 digit number.<br>
<br></div><div>With all of that said, the prefix could be store in a variable of its own, which lends itself to being reused multiple times throughout the script. You could even mark it final to indicate that you do not intend for this variable to be variable, but rather quite the opposite: static.<br>
</div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 25, 2013 at 1:46 PM, Jason Aarons (AM) <span dir="ltr"><<a href="mailto:jason.aarons@dimensiondata.com" target="_blank">jason.aarons@dimensiondata.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div><p class="MsoNormal"><span style="color:#1f497d">First I tried <u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Set extXferFinalNumber = ‘3456’ + extXferResult<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">The above wouldn’t validate, it would validate if I put ‘3’ + extXferResult. Perhaps too many characters?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">So the workaround was your exact match below. With my DialOutDigits = 3456 it’s working fine.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks -jason<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> Matthew Loraditch [mailto:<a href="mailto:MLoraditch@heliontechnologies.com" target="_blank">MLoraditch@heliontechnologies.com</a>] <br>
<b>Sent:</b> Wednesday, September 25, 2013 9:29 AM<br><b>To:</b> Jason Aarons (AM); cisco-voip (<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a>)<br><b>Subject:</b> RE: UCCX 9x Set step to modify Get Digit String ?<u></u><u></u></p>
</div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u> <u></u></span></p><p class="MsoNormal">
<span style="color:#1f497d">Yes that looks correct. The 3456 would need to be in quotes since it’s not a parameter, but that will work. That’s how I append my dial out digit:<u></u><u></u></span></p><p class="MsoNormal"><img src="cid:image001.png@01CEB9FE.0F9E2FE0" height="89" width="550"><span style="color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Also I presume you actually mean prepend since that’s what your example shows you wanting to do. For an append, you would just flip the order.<u></u><u></u></span></p><div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d">Matthew G. Loraditch – CCNP-Voice, CCNA-R&S, CCDA<br>
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d"><br>1965 Greenspring Drive</span><span style="color:#1f497d"><br></span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d">Timonium, MD 21093</span><span style="color:#1f497d"><br>
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#1f497d"><br>voice. <a href="tel:410.252.8830" value="+14102528830" target="_blank">410.252.8830</a><br>fax. <a href="tel:410.252.9284" value="+14102529284" target="_blank">410.252.9284</a> <br>
<br><a href="http://twitter.com/heliontech" target="_blank"><span style="color:blue">Twitter</span></a> | <a href="http://www.facebook.com/#!/pages/Helion/252157915296" target="_blank"><span style="color:blue">Facebook</span></a> | <a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:blue">Website</span></a> | <a href="mailto:support@heliontechnologies.com?subject=Technical%20Support%20Request" target="_blank"><span style="color:blue">Email Support</span></a></span><span style="font-family:"Arial","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:#1f497d"><u></u> <u></u></span></p></div><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> cisco-voip [<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">mailto:cisco-voip-bounces@puck.nether.net</a>] <b>On Behalf Of </b>Jason Aarons (AM)<br><b>Sent:</b> Wednesday, September 25, 2013 9:21 AM<br>
<b>To:</b> cisco-voip (<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a>)<br><b>Subject:</b> [cisco-voip] UCCX 9x Set step to modify Get Digit String ?<u></u><u></u></p></div></div>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m in UCCX and want the caller to input a 3 digit number, then I need to modify that 3 digit number by appending <b>3456</b>. For example caller enters <u>567</u>, I need the call redirect to go to <b>345</b><u>6567</u>.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m thinking I need a “set” step but not sure what the syntax should look like. Set extXferResult = 3456 + extXferResult ?<u></u><u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal">Anyone have a sample where they are doing this?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">UCCX 9x<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Variables<u></u><u></u></p><p class="MsoNormal">extXferInput String<u></u><u></u></p><p class="MsoNormal">extXferResult String<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
extXferResult = Get Digit String (--Triggering Contact--) <u></u><u></u></p><p class="MsoNormal" style="text-indent:.5in">Successful <u></u><u></u></p><p class="MsoNormal" style="margin-left:.5in;text-indent:.5in">Call Redirect (--Triggering Contact-- to extXferResult) <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:.5in;text-indent:.5in"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Existing Screenshot from Script Editor<u></u><u></u></p><p class="MsoNormal"><img src="cid:image002.png@01CEB9FE.0F9E2FE0" border="0" height="198" width="454"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><img src="cid:image003.png@01CEB9FE.0F9E2FE0" border="0" height="38" width="508"><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">References<u></u><u></u></p><p class="MsoNormal"><a href="https://supportforums.cisco.com/thread/2100963" target="_blank">https://supportforums.cisco.com/thread/2100963</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br><br><span style="color:white">itevomcid</span> <u></u><u></u></span></p>
</div></div><br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br></div>