Author Topic: I need a sample for reading attach data  (Read 7826 times)

Malil

  • Guest
I need a sample for reading attach data
« on: May 19, 2007, 01:39:52 AM »
Hi!

I'm looking at your forum and I like it, because it is a great place to find an answer to my Genesys questions.

I am in a process of developing a server that stores all of user data that arrives with the inbound calls into a repository and struggling with it. I asked our Genesys consulting company and they told me that questions such as this one are not supported. I am at loss what to do, because it does not seem right but I am not in a position to change it.

I need somebody to show me how to rip user data that comes with the inbound call using genesys sdk or desktop toolkit library for free.

And, just to poll everybody - is it common for Genesys vendors to refuse questions of such nature despite our company dishing out framework and reporting license and support fees?

Thank you so much!!!


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: I need a sample for reading attach data
« Reply #1 on: May 19, 2007, 03:00:43 AM »
  • Best Answer
  • Well as company if you are my customer i'll at least try to charge the knowledge transfer as i may be losing a lot of sales oportunities to you and Genesys products.
    As "internet dude" i like to share knowledge and to learn as they are a lot of people that think that way as this forum.

    Anyway:

    Be served :D This is ActiveX by the way

    Private Sub TExtension1_TEvent(EventInfo As DesktopToolkitX.TEventInfo)
    Dim myUserDataList As New CTKVList
    Dim myUserDataPair As New CTKVPair

    If EventInfo.Event = EventRinging Then
    Set myUserDataList = EventInfo.UserData
    If myUserDataList.GetCount >= 1 Then
    For i = 0 To myUserDataList.GetCount
    Set myUserDataPair = myUserDataList.Get(i)
    List1.AddItem "UserData Key: " & myUserDataPair.Key
    List1.AddItem "UserData Value: " & myUserDataPair.StringValue
    Next i
    End If
    End If

    ;D As usual we always be try to help

    Maybe someone will post a .Net or the new SDK's that i still have no time to learn.

    Offline victor

    • Administrator
    • Hero Member
    • *****
    • Posts: 1416
    • Karma: 18
    Re: I need a sample for reading attach data
    « Reply #2 on: May 21, 2007, 09:28:53 AM »
  • Best Answer
  • It is amazing how many questions are related to each other.
    Just one post down there is exactly what this guy needs!

    Here we go (for SDK):

      KeyValueCollection attach_data = event.getUserData();

              Object[] arr = attach_data.toArray();
                                         
                int count;
                for (count = 0; count < arr.length; count++) {
                    KeyValuePair kvp = (KeyValuePair)arr[count];
                }


               
    Did it help you?

    Vic

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7639
    • Karma: 56330
    Re: I need a sample for reading attach data
    « Reply #3 on: May 21, 2007, 07:02:23 PM »
  • Best Answer
  • Yep, don't know why people doesn't bother in searching before asking... lazy people

    Offline Genesys CTI Forum Administration Team

    • Administrator
    • Jr. Member
    • *****
    • Posts: 56
    • Karma: 4
    Re: I need a sample for reading attach data
    « Reply #4 on: May 22, 2007, 09:02:19 AM »
  • Best Answer
  • It's ok.  :D  We don't mind, because in many instances, it is much easier to ask than to search. This is perhaps one of those instances. This forum is used as much for Q&A as it is for looking things up. We also have Tony Tillers personal phone number, so if no one is answering the question, we just ring him up at two or three AM and make sure that he replies in a timely and positive fashion!