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

  • Upload a workgroup mapping translation structure.

Syntax

  • AeXMLBridge.maintainWGXlate(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

TAeWorkgroupXLate wgxlate = new TAeWorkgroupXLate();

wgxlate.WG1 = Convert.ToInt32(txtWG1.Text);
wgxlate.WG2 = Convert.ToInt32(txtWG2.Text);
wgxlate.WG3 = Convert.ToInt32(txtWG3.Text);
wgxlate.WG4 = Convert.ToInt32(txtWG4.Text);
wgxlate.WG5 = Convert.ToInt32(txtWG5.Text);
wgxlate.WG6 = Convert.ToInt32(txtWG6.Text);
wgxlate.WG7 = Convert.ToInt32(txtWG7.Text);
wgxlate.WGExtDescr = txtWGXlateDescr.Text;
wgxlate.WGExtID = txtXlateID.Text;

try
{
ws.maintainWGXlate(wgxlate);
}
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 wgxlate As TAeWorkgroupXLate = New TAeWorkgroupXLate()

wgxlate.WG1 = Convert.ToInt32(txtWG1.Text)
wgxlate.WG2 = Convert.ToInt32(txtWG2.Text)
wgxlate.WG3 = Convert.ToInt32(txtWG3.Text)
wgxlate.WG4 = Convert.ToInt32(txtWG4.Text)
wgxlate.WG5 = Convert.ToInt32(txtWG5.Text)
wgxlate.WG6 = Convert.ToInt32(txtWG6.Text)
wgxlate.WG7 = Convert.ToInt32(txtWG7.Text)
wgxlate.WGExtDescr = txtWGXlateDescr.Text
wgxlate.WGExtID = txtXlateID.Text

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

Remarks

  • The WGExtID property uniquely identifes which translation to add or edit.
  • Workgroup translation must be enabled on a client’s database for this operation to succeed.
  • If the mapping already exists, its properties are updated. If the mapping does not yet exist, the translation is added
  • 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.

Possible Errors

  • Invalid object name “WORKGROUPx” (x=WGLevel)
  • Duplicate Workgroup Code
  • yyyy-mm-dd is required [Date supplied in invalid format]

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

Back to Top