[cisco-voip] UCCX Java Script Help

Florian Kroessbacher florian.kroessbacher at gmail.com
Fri Sep 16 14:02:07 EDT 2011


Hy Maybe,

this is your code

String test = "201109164321";
// Check if Length 12
if (test.length()!= 12){
System.out.println("Something wrong");
}
else{
System.out.println("Test before:"+test);
test = "T"+test.subSequence(0, 8)+"."+test.subSequence(8, 12);
System.out.println("Test before:"+test);
}

I would check if the length is exact 12 digits if not let reenter

Florian Kroessbacher

gmail: florian.kroessbacher at gmail.com



2011/9/16 Matthew Loraditch <MLoraditch at heliontechnologies.com>

>  User enters 201109164321****
>
> Need it to be T20110916.4321****
>
> ** **
>
> [image: Description: cid:image001.jpg at 01C95158.4441E1B0]****
>
> *Matthew Loraditch, CCVP, CCNA, CCDA*
> 1965 Greenspring Drive****
>
> Timonium, MD 21093
> support at heliontechnologies.com
> (p) (410) 252-8830
>
> (F) (443) 541-1593
>
> Visit us at www.heliontechnologies.com
> Support Issue? Email support at heliontechnologies.com for fast assistance!
> ****
>
>  ** **
>
> *From:* Mike Olivere [mailto:mikeeo at msn.com]
> *Sent:* Friday, September 16, 2011 12:38 PM
> *To:* Matthew Loraditch
> *Cc:* cisco-voip at puck.nether.net
> *Subject:* Re: [cisco-voip] UCCX Java Script Help****
>
> ** **
>
> You will need to use java split if you can send back an example I'll send u
> the code
>
> Sent from my iPhone****
>
>
> On Sep 16, 2011, at 11:59 AM, Matthew Loraditch <
> MLoraditch at heliontechnologies.com> wrote:****
>
>  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.****
>
> 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 8th digit. I’m no java script
> expert so I was wondering if someone on the list would know the code to do
> this?****
>
> Thanks in advance!****
>
>  ****
>
>  ****
>
> *Matthew Loraditch, CCVP, CCNA, CCDA*
> 1965 Greenspring Drive****
>
> Timonium, MD 21093
> mloraditch at heliontechnologies.com
> (p) (443) 541-1518
> (F) (443) 541-1593
>
> Visit us at www.heliontechnologies.com
> Support Issue? Email support at heliontechnologies.com for fast assistance!**
> **
>
>  ****
>
>  ****
>
>  _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip****
>
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20110916/1d2b7fde/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 33011 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20110916/1d2b7fde/attachment.jpg>


More information about the cisco-voip mailing list