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

  • Returns a sorted list of sub workgroups for a selected workgroup level

Syntax

  • AeWorkgroupAry = AeXMLBridge.getWorkgroups (WGLevel, WGSortingOption);

Parameters

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
TWGSortingOption sortOption =  TWGSortingOption.wgsName;                   
// sort option of how we want records returned

int wgLevel = 1;
// lets look at level 1 (Location)

try
{
TAeWorkgroup[] groups = ws.getWorkgroups(wgLevel, sortOption);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
Dim sortOption As TWGSortingOption = TWGSortingOption.wgsName
' sort option of how we want records returned

Dim wgLevel As Integer = 1
' lets look at level 1 (Location)

Try
Dim groups As TAeWorkgroup() = ws.getWorkgroups(wgLevel, sortOption)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • None

Possible Errors

  • Cannot set workgroup level parameter > 7
  • Invalid object name “Workgroupx” (x = level)

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

Back to Top