Knowledgebase:
GetDepartments
Posted by Angham Al-Banawien, Last modified by Angham Al-Banawien on 05 July 2018 01:43 PM

Syntax

 Public Function GetDepartments() As CallingResultsEnum

This function is used to get all departments that have privilege on the logged in client After the GetDepartments method executes the DepartmentsResultReceived event fires.

Parameters

No parameters. 

Return value

Returns value of type CallingResultsEnum. If the request sent to the server successfully it will return SuccessResult.

Sample

 Private Sub GetDepartments_Click()

          Dim result As CallingResultsEnum
          result = GetDepartments()
          Msgbox(result)
     End sub

     Private Sub API_DepartmentsResultReceived(ByRef Departments As CDepartments, ByRef Count As  Integer) Handles API.DepartmentsResultReceived

      If Count > 0 then
           For i As Integer = 0 To Count -1
               Dim dep As CDepartment
               dep = Departments.Item(i)
               MsgBox(dep.DeptID)
           Next
      End if
       

 End Sub 


See Also


VertexFX Client API Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions