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

  • Removes a Global Pay Mapping Designation

Syntax

  • ws.removeGlobalPayDesMappingSet(GlobalMappingSetName);

Parameters

  • String - global mapping set name

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
string[] mappingNames = ws.getGlobalPayDesMappingsSimple();               
// retrieve a list of valid mapping set name

if (mappingNames.Length > 0)
// not all clients have global mapping sets, so we check first
{
try
{
ws.removeGlobalPayDesMappingSet(mappingNames[0]);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
Dim mappingNames As String() = ws.getGlobalPayDesMappingsSimple()
' retrieve a list of valid mapping set name

If mappingNames.Length > 0 Then
' not all clients have global mapping sets, so we check first

Try
ws.removeGlobalPayDesMappingSet(mappingNames(0))
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End If

Remarks

Possible Errors

  • Mapping set not found

Related Methods

appendGlobalPayDesMappingSetMapping
getGlobalPayDesMappingSet
getGlobalPayDesMappingSetMappings
getGlobalPayDesMappingsSimple

Back to Top