" /> Remove user-data - Genesys CTI User Forum

Author Topic: Remove user-data  (Read 2886 times)

JimH

  • Guest
Remove user-data
« on: October 12, 2006, 10:02:41 AM »
Advertisement
How do you delete user-data from a call using soft-phone or URS?

Offline Haldane

  • Jr. Member
  • **
  • Posts: 72
  • Karma: 1
Re: Remove user-data
« Reply #1 on: October 12, 2006, 10:25:32 AM »
In the softphone you can use something like the following. (This is not compiled code )

Dim MykeyPair as CTKVPair
Dim MyUdata as CTKVList
Dim KeyPairCount as Integer
Dim i as integer

KeypairCount =MyUdata.GetCount

For i = 0 to KeyPairCount
   
// This will Delete all
Set MyKeyPair = MyUdata.Delete(i)

//This will delete particular
If MyKeyPair.Key = "The One to Delete" then
  MyUdata.Delete(i)

Next i


Marked as best answer by on Today at 07:38:53 AM

perilman

  • Guest
Re: Remove user-data
« Reply #2 on: October 12, 2006, 12:25:46 PM »
  • Undo Best Answer
  • If you are using URS, you can issue Update['keyname',''] to delete it. It will not remove the key, but it will remove the value.
    I think there is a way to remove the key altogether, but I don't know how to do it it. Any suggestions?
    :-[