[cisco-voip] Java Function for UCCX

Tanner Ezell tanner.ezell at gmail.com
Tue Feb 23 13:20:57 EST 2010


Oh, I thought you were referring to 'User' being a data structure.
This is simple then.

Assume 'Users' has your string

username = Users.substring(Users.indexOf("id=") + 3,Users.lastIndexOf(",") )

Cheers,
Tanner Ezell

On Tue, Feb 23, 2010 at 12:30 PM, Matthew Loraditch
<MLoraditch at heliontechnologies.com> wrote:
> Attached,
> That string is the what selectedResource is set to by the system.
> So if I output selectedResource I get the string (w/o quotes): " User[type=Call Manager User,id=usersname,authenticated=true]"
> I need to clean that up to be just what id is equal to
> Make sense?
>
>
> Matthew Loraditch, CCNA
> 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!
>
> -----Original Message-----
> From: Tanner Ezell [mailto:tanner.ezell at gmail.com]
> Sent: Tuesday, February 23, 2010 12:26 PM
> To: Matthew Loraditch
> Cc: cisco-voip at puck.nether.net
> Subject: Re: [cisco-voip] Java Function for UCCX
>
> Can you clarify where this is coming from?
>
> Is User an array? if so, User[1] would be the id.
>
> Perhaps a screenshot of the relevant part of the script would be helpful.
>
> On Tue, Feb 23, 2010 at 12:18 PM, Matthew Loraditch <MLoraditch at heliontechnologies.com> wrote:
>> I need to clean out this string to be just the user id. I am pulling
>> the selected resource from a script and writing to a custom DB,
>>
>> The value the system uses is this: User[type=Call Manager
>> User,id=usersname,authenticated=true]
>>
>> I need just the portion for user id. It's variable length so I'm not
>> sure how to deal with that.
>>
>>
>>
>> Thanks!!
>>
>>
>>
>>
>>
>> Matthew Loraditch, CCNA
>> 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!
>>
>>
>>
>> _______________________________________________
>> cisco-voip mailing list
>> cisco-voip at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>
>>
>
>
>
> --
> Regards,
> Tanner Ezell
>



-- 
Regards,
Tanner Ezell


More information about the cisco-voip mailing list