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

  • Update or create a Global Pay Designation Mapping Set.

Syntax

  • AeXMLBridge.setGlobalPayDesMappingSet(AePayDesMappingSet, ResetMappings)

Parameters

  • Structure- TAePayDesMappingSet
  • Boolean- Set to true to reset all existing mappings that belong to this mapping set

Return Value

  • None

Sample Code

C#

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

TAePayDesMappingSet pdms = new TAePayDesMappingSet();
pdms.IncludeRates = chkIncludeRates.Checked;
pdms.IncludeUndefined = chkIncludeUndefined.Checked;
pdms.IncludeWGs = chkIncludeWGs.Checked;
pdms.ItemData = txtItemData.Text;
pdms.WGRenderingFormula = Convert.ToInt32(txtRenderingFormula.Text);

try
{
ws.setGlobalPayDesMappingSet(pdms, chkResetMappings.Checked);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message)
}

VB.Net

1
2
3
4
5
6
7
8
9
10
11
12
Dim pdms As TAePayDesMappingSet = New TAePayDesMappingSet()
pdms.IncludeRates = chkIncludeRates.Checked
pdms.IncludeUndefined = chkIncludeUndefined.Checked
pdms.IncludeWGs = chkIncludeWGs.Checked
pdms.ItemData = txtItemData.Text
pdms.WGRenderingFormula = Convert.ToInt32(txtRenderingFormula.Text)

Try
ws.setGlobalPayDesMappingSet(pdms, chkResetMappings.Checked)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try

Remarks

  • If a mapping set alreadly exists under the name provided within the TAePayDesMappingSet structure, the mapping set properties are updated and the individual mappings are maintained unless the ResetMapping parameter is set to true.

Possible Errors

  • Mapping Set already exists

appendGlobalPayDesMappingSetMapping
getGlobalPayDesMappingSet
getGlobalPayDesMappingSetMappings
getGlobalPayDesMappingsSimple

Back to Top