getWorkgroup() 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 details about a specific workgroup based on level and number

Syntax

  • AeWorkgroup = AeXMLBridge.getWorkgroup(WGLevel, WGNum);

Parameters

  • Integer - workgroup level (1-7)
  • Integer - workgroup number

Return Value

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
int wgLevel = 1;                                                           
// choosing a workgroup to work with (1-7)

int wgNum = 1;

try
{
TAeWorkgroup workGroup = ws.getWorkgroup(wgLevel, wgNum);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}

VB.Net

1
2
3
4
5
6
7
8
9
10
Dim wgLevel As Integer = 1
' choosing a workgroup to work with (1-7)

Dim wgNum as Integer = 1

Try
Dim workGroup As workGroup = ws.getWorkgroup(wgLevel, wgNum)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • You can use getWorkgroups to return the specific workgroup level and its related numbers

Possible Errors

  • Invalid object name [when WGLevel is not found]

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

Back to Top