Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    Senior Member
    Join Date
    Jun 2013
    Posts
    144

    Default

    Thanks, I got the latest version of BO API

    Now, another issue - how can we identify client's group, office, dealer using API function?
    Also we need to identify user's platform from where they have logged in i.e Desktop Application, Web, Mobile from API - how to do that?

  2. #32
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    You are welcome,


    Now, another issue - how can we identify client's group, office, dealer using API function?
    We already working on this, we will release a new patch within days that will support this feature...

    Also we need to identify user's platform from where they have logged in i.e Desktop Application, Web, Mobile from API - how to do that?
    Check the IP-Address property of the logged in session and API-Login property , this string identifies the user platform as following:


    "10.20.30.40" and the APILogin=False : Desktop Application

    "10.20.30.40" and the APILogin=True : Desktop Application thats use our API

    "Web(10.20.30.40)" : Web

    "Mobile(10.20.30.40)" : Mobile
    Last edited by Hassan-HS; 06-24-2014 at 07:48 AM.

  3. #33
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Default

    Hello Hasan,


    We have released the new patch of Backoffice API ( 10.2.4 ), please contact our support department to get it.

    Now you can identify if the client type using the ClientType property.

    Sample
    Code:
     Dim Client As VertexFXBOAPI10.COClient
            Dim ID As Integer = 1234
            Client = m_oBOAPI.ClientByID(ID)
            If Client IsNot Nothing Then
                Select Case Client.ClientType
                    Case ClientTypeEnum.CLIENT_TYPE
                        MsgBox("Client")
                    Case ClientTypeEnum.OFFICE_TYPE
                        MsgBox("Office")
                    Case ClientTypeEnum.OTHER_GROUPS_TYPE
                        MsgBox("Group")
                End Select
            Else
                If String.IsNullOrEmpty(m_oBOAPI.DealerUsername(ID)) Then
                    MsgBox("There is no client or dealer with this ID")
                Else
                    MsgBox("Dealer")
                End If
            End If

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C# Program Crashes on calling the login function
    By ufazal in forum VertexFX API/VTL Forum
    Replies: 9
    Last Post: 02-19-2014, 02:27 PM
  2. Having problem in the vtl ea
    By ankitkalindi in forum VertexFX API/VTL Forum
    Replies: 13
    Last Post: 01-09-2014, 09:41 AM
  3. Currency Server API properties - problem with value assignment
    By b.martemianov in forum VertexFX API/VTL Forum
    Replies: 2
    Last Post: 09-12-2013, 08:44 AM
  4. vertex back office API
    By abdulsattar in forum VertexFX API/VTL Forum
    Replies: 16
    Last Post: 01-20-2011, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •