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

  • Adds a mapping definition to a Global Pay Designation Mapping Set

Syntax

  • AeXMLBridge.appendGlobalPayDesMappingSetMapping(GlobalMappingSetName, AePayDesMapping)

Parameters

Return Value

  • None

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

TAePayDesMapping mapping = new TAePayDesMapping();

mapping.GroupID = 1;
mapping.Label1 = "Enter Label 1 identifier here";
mapping.Label2 = "Enter Label 2 identifier here";
mapping.Label3 = "Enter Label 3 identifier here";

TAeBasicDataTime[] payDes = ws.getPayDesignationsSimple();

mapping.PayDesNum = payDes[0].Num;
string mappingName = "New Mapping Name";

try
{
ws.appendGlobalPayDesMappingSetMapping(mappingName, Mapping);
}
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
17
18

Dim mapping__1 As New TAePayDesMapping()

mapping__1.GroupID = 1
mapping__1.Label1 = "Enter Label 1 identifier here"
mapping__1.Label2 = "Enter Label 2 identifier here"
mapping__1.Label3 = "Enter Label 3 identifier here"

Dim payDes As TAeBasicDataTime() = ws.getPayDesignationsSimple()

mapping__1.PayDesNum = payDes{0).Num
Dim mappingName As String = "New Mapping Name"

Try
ws.appendGlobalPayDesMappingSetMapping(mappingName, mapping_1)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • Use getPayDesignationsSimple to retrieve a list of Pay Designation ID’s
  • This method appends a new mapping to an existing Global Pay Designation Mapping Set. If one does not currently exist, a new one will be created using default settings.

Possible Errors

  • None Known

getGlobalPayDesMappingSet
getGlobalPayDesMappingSetMappings
getGlobalPayDesMappingsSimple
removeGlobalPayDesMappingSet

Back to Top