getGlobalPayDesMappingSet() 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 the properties of a Global Pay Designation Mapping Set

Syntax

  • AePayDesMappingSet = AeXMLBridge.getGlobalPayDesMappingSet(GlobalMappingSetName);

Parameters

  • String - global mapping set name

Return Value

Sample Code

C#

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

string[] mappings = ws.getGlobalPayDesMappingsSimple();
// retrieve a list of global mappings.

if (mappings.Length > 0)
// check to see if we have at least one mapping
{
try
{
TAePayDesMappingSet mappingSet = ws.getGlobalPayDesMappingSet(mappings[0]);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

VB.Net

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

Dim mappings As String() = ws.getGlobalPayDesMappingsSimple()
' retrieve a list of global mappings. If none exist this will return an empty array

If mappings.Length > 0 Then
' check to see if we have at least one mapping

Try
Dim mappingSet As TAePayDesMappingSet = ws.getGlobalPayDesMappingSet(mappings(0))
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If

Remarks

Possible Errors

  • Mapping set not found

Related Methods

appendGlobalPayDesMappingSetMapping
getGlobalPayDesMappingSetMappings
getGlobalPayDesMappingsSimple
removeGlobalPayDesMappingSet

Back to Top