removeEmpAttribsAssignByUniqueID() Method

Table of Contents

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

Function

  • Removes an employee’s existing attribute assignment

Syntax

  • bool = AeXMLBridge.removeEmpAttribsAssignByUniqueID(UniqueID);

Parameters

  • Integer - UniqueID of an existing record

Return Value

  • Returns a boolean value indicating whether the method executed correctly or not

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
string empID = "1234";   
// using employee with ID 1234

try
{
TAeEmpAttribsAssign[] empAttribsAssign = ws.extractEmpAttribsAssignByIDNum(empID);

bool wasRemoved = ws.removeEmpAttribsAssignByUniqueID(empAttribsAssign[0].UniqueID);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
Dim empID As String = "1234"
' using employee with ID 1234

Try
Dim empAttribsAssign As TAeEmpAttribsAssign() = ws.extractEmpAttribsAssignByIDNum(empID)
Dim wasRemoved As Boolean = ws.removeEmpAttribsAssignByUniqueID(empAttribsAssign(0).UniqueID)

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

Remarks

  • If record is found and removed, the return value will be true. Otherwise, false

Possible Errors

  • None

Alternate Method

  • None

appendEmpAttribsAssignByIDnum
extractAttributes
extractEmpAttribsAssignsByIDnum
getEmptyEmpAttribsAssign

Back to Top