getEmployeesSearchListDetail2() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Related Methods

Function

  • Performs a wildcard search on employee first and last names

Syntax

  • AeEmployeeDetail2Ary = AeXMLBridge.getEmployeesSearchListDetail2(Wildcard, Phonetic, MaxRecords);

Parameters

  • String - wildcard (substring)
  • Boolean - enable phonetic spelling (not implemented as of yet, so set this value to false)
  • Integer - maximum number of records to return

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
string wildcard = "ab";                                                    
// return any employee having "ab" in their first or last name

bool phonetic = false;

int maxRecords = 100;
// return no more than the first 100 matching records

try
{
TAeEmployeeDetail2[] empsDetail2 = ws.getEmployeesSearchListDetail2(wildcard, phonetic, maxRecords);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
Dim wildcard As String = "ab"
' return any employee having "ab" in their first or last name

Dim phonetic As Boolean = False
Dim maxRecords As Integer = 100
' return no more than the first 100 matching records

Try
Dim empsDetail2 As TAeEmployeeDetail2() = ws.getEmployeesSearchListDetail2(wildcard, phonetic, maxRecords)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • Enter the actual data you are searching for in the wildcard parameter. Do not include search symbols (such as an asterisk) in the parameter
  • Setting the maxRecords parameter to zero will return all records matching the wildcard

Possible Errors

  • None

getEmployeeDetail2ByIDNum
getEmployeesListDetail2FromHyperQuery
getEmployeesListDetail2FromHyperQueryWorkgroupFilter
getEmptyEmployeeDetail2

Back to Top