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

  • Updates a workgroup’s properties

Syntax

  • AeXMLBridge.setWorkgroup(AeWorkgroup);

Parameters

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

int wgLevel = 1; // working with Workgroup Level 1
TAeWorkgroup[] workgroups = ws.getWorkgroups(wgLevel, TWGSortingOption.wgsNum);

TAeWorkgroup wg = workgroups[0]; // get our workgroup to update
wg.WGRate += .10d; // add .10 to workgroup rate

try
{
ws.setWorkgroup(wg);
}
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 wgLevel As Integer = 1
‘ working with Workgroup Level 1

Dim workgroups As TAeWorkgroup() = ws.getWorkgroups(wgLevel, TWGSortingOption.wgsNum)

Dim wg As TAeWorkgroup = workgroups(0)
get our workgroup to update

wg.WGRate += 0.1
‘ add .10 to workgroup rate

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

Remarks

  • None

dateRangeEmpEnumListSimple
dateRangeEnumListDescr
dateRangeEnumEndDate
setWorkgroupLevelLabels
setManuallySelectedSetupData

Back to Top