removeWGXlate() 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

  • Removes a workgroup mapping translation. Workgroup translations are a one-to-one translation of a 3rd party’s workgroup entity identifier and Attendance on Demand’s 7 level workgroup set.

Syntax

  • AeXMLBridge.removeWGXlate(AeWorkgroupXLate);

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
20
21
22

TAeWorkgroupXlate xlate = new TAeWorkgroupXlate();

// substitute your values
xlate.WG1 = 1;
xlate.WG2 = 1;
xlate.WG3 = 3;
xlate.WG4 = 0;
xlate.WG5 = 0;
xlate.WG6 = 0;
xlate.WG7 = 0;
xlate.WGExtDescr = "Accounting Workgroup";
xlate.WGExtID = "A1";

try
{
ws.removeWGXlate(xlate);
}
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
17
Dim xlate As TAeWorkgroupXlate = New TAeWorkgroupXlate()

xlate.WG1 = 1
xlate.WG2 = 1
xlate.WG3 = 3
xlate.WG4 = 0
xlate.WG5 = 0
xlate.WG6 = 0
xlate.WG7 = 0
xlate.WGExtDescr = "Accounting Workgroup"
xlate.WGExtID = "A1"

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

Remarks

  • The WGExtID property uniquely identifes which translation to remove.
  • Workgroup translation must be enabled on a client’s database for this operation to succeed.

Possible Errors

  • Invalid Workgroup Num

addDeptXlateItem
addWorkgroup
delWorkgroup
extractDeptXlateItems
extractWGXlates
getWorkgroup
getWorkgroupLevelDetails
getWorkgroups
getWorkgroupStruct
getWorkgroupViaCode
getWorkgroupViaName
maintainWGXlate
nextWGNumForWGLevel
removeDeptXlateItem
setWorkgroup
setWorkgroupLevelLabels

Back to Top