Hy Maybe,<div><br></div><div>this is your code</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>String test = "201109164321";</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>// Check if Length 12</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>if (test.length()!= 12){</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>System.out.println("Something wrong");</div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>else{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>System.out.println("Test before:"+test);</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>test = "T"+test.subSequence(0, 8)+"."+test.subSequence(8, 12);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>System.out.println("Test before:"+test);</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br></div><div>I would check if the length is exact 12 digits if not let reenter</div><div><br></div>Florian Kroessbacher<br><br>gmail: <a href="mailto:florian.kroessbacher@gmail.com" target="_blank">florian.kroessbacher@gmail.com</a><br>
<br>
<br><br><div class="gmail_quote">2011/9/16 Matthew Loraditch <span dir="ltr"><<a href="mailto:MLoraditch@heliontechnologies.com">MLoraditch@heliontechnologies.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">User enters 201109164321<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Need it to be T20110916.4321<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#003366"><img width="225" height="105" src="cid:image001.jpg@01CC7471.0BD4BE80" alt="Description: cid:image001.jpg@01C95158.4441E1B0"></span><span style="font-size:10.0pt;color:#1F497D"><u></u><u></u></span></p>
<div class="im">
<p class="MsoNormal"><b><span style="font-size:11.0pt;color:black">Matthew Loraditch, CCVP, CCNA, CCDA</span></b><span style="font-size:11.0pt;color:black"><br>
<a href="tel:1965" value="+431965" target="_blank">1965</a> Greenspring Drive<u></u><u></u></span></p>
</div><p class="MsoNormal"><span style="font-size:11.0pt;color:black">Timonium, MD 21093
<br>
<a href="mailto:support@heliontechnologies.com" target="_blank"><span style="color:black">support@heliontechnologies.com</span></a><br>
(p) (410) <a href="tel:252-8830" value="+432528830" target="_blank">252-8830</a></span></p><div class="im"><br>
(F) (443) <a href="tel:541-1593" value="+435411593" target="_blank">541-1593</a><br>
<br>
Visit us at <a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:black">www.heliontechnologies.com</span></a>
<br>
Support Issue? Email <a href="mailto:support@heliontechnologies.com" target="_blank"><span style="color:black">support@heliontechnologies.com</span></a> for fast assistance!</div><span style="font-size:11.0pt;color:#1F497D"><u></u><u></u></span><p>
</p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Mike Olivere [mailto:<a href="mailto:mikeeo@msn.com" target="_blank">mikeeo@msn.com</a>]
<br>
<b>Sent:</b> Friday, September 16, 2011 12:38 PM<br>
<b>To:</b> Matthew Loraditch<br>
<b>Cc:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> Re: [cisco-voip] UCCX Java Script Help<u></u><u></u></span></p>
</div>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">You will need to use java split if you can send back an example I'll send u the code<br>
<br>
Sent from my iPhone<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Sep 16, 2011, at 11:59 AM, Matthew Loraditch <<a href="mailto:MLoraditch@heliontechnologies.com" target="_blank">MLoraditch@heliontechnologies.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">We changed ticketing systems for our help desk and now our ticket numbers are not straight digits anymore. Luckily the non digit part is fixed so we are asking callers to still
enter just numbers but in order for me to update the ticketing system correctly I need to add some characters to the string they enter.<u></u><u></u></p>
<p class="MsoNormal">What i need to do is take their 12 digit string and add a capital “T” to the front of it and put a period after the 8<sup>th</sup> digit. I’m no java script expert so I was wondering
if someone on the list would know the code to do this?<u></u><u></u></p>
<p class="MsoNormal">Thanks in advance!<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:black">Matthew Loraditch, CCVP, CCNA, CCDA</span></b><span style="color:black"><br>
<a href="tel:1965" value="+431965" target="_blank">1965</a> Greenspring Drive</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:black">Timonium, MD 21093
<br>
<a href="mailto:mloraditch@heliontechnologies.com" target="_blank">mloraditch@heliontechnologies.com</a><br>
(p) (443) <a href="tel:541-1518" value="+435411518" target="_blank">541-1518</a><br>
(F) (443) <a href="tel:541-1593" value="+435411593" target="_blank">541-1593</a><br>
<br>
Visit us at <a href="http://www.heliontechnologies.com/" target="_blank"><span style="color:black">www.heliontechnologies.com</span></a>
<br>
Support Issue? Email <a href="mailto:support@heliontechnologies.com" target="_blank"><span style="color:black">support@heliontechnologies.com</span></a> for fast assistance!</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">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><u></u><u></u></p>
</div>
</blockquote>
</div></div></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>