setEmployeeDetail2() Method

Table of Contents

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

Function

  • Updates an employee’s detail2 level information

Syntax

  • AeXMLBridge.setEmployeeDetail2(AeEmployeeDetail2);

Parameters

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int filekey = 1234;                                                           
// using employee with filekey 1234

TAeEmployeeDetail2 empDetail2 = ws.getEmployeeDetail2ByFilekey(filekey);
// TAeEmployeeDetail2 also contains all the fields found in TAeEmployeeDetail
// which in turn contains all the fields from TAeEmployeeBasic
empDetail2.ESSPin = “12121212”;
empDetail2.EMAIL = “somePerson@yourcompany.com”;
empDetail2.ObservesDST = 1;
empDetail2.TimeZoneOffset = 0;

try
{
ws.setEmployeeDetail2(empDetail2);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Dim filekey As Integer = 1234
' using employee with filekey 1234

Dim empDetail2 As TAeEmployeeDetail2 = ws.getEmployeeDetail2ByFilekey(filekey)
' TAeEmployeeDetail2 also contains all the fields found in TAeEmployeeDetail which in turn contains all the fields from TAeEmployeeBasic

empDetail2.ESSPin = “12121212
empDetail2.EMAIL = “somePerson@yourcompany.com”
empDetail2.ObservesDST = 1
empDetail2.TimeZoneOffset = 0

Try
ws.setEmployeeDetail2(empDetail2)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

Possible Errors

  • Either Filekey and/or EmpID value must be set

Preferred Method

maintainEmployeeDetail2

Alternate Method

maintainEmployeeBasic
maintainEmployeeDetail

getEmployeeBasicByIDNum
getEmployeeDetailByIDNum
setEmployeeBasic
setEmployeeDetail
setEmployeeESSEmailByIDNum
setEmployeeESSPINByIDNum
setEmployeeTZByIDNum
setManuallySelectedEmployeeData

Back to Top