This example demonstrates how to add a new field mapping template containing Groovy code.
Prerequisites
Procedure
For the purposes of this example, let's assume that you want to create a new field mapping template with Groovy code for a Resource business object in P6:
Note: In this case, the source fields are in the Sample provider, and the target fields are in the Gateway provider.
Note: In this case, the target fields are in the Gateway provider
if (containsField("EmployeeName"))
{
{Name} = [EmployeeName].toUpperCase();}
if (containsField("SampleDate")) {
def cal = new GregorianCalendar();
cal.setTime([SampleDate]);
cal.add(Calendar.DATE, -1);
cal.add(Calendar.HOUR, 2);
{Name} = cal.getTime();
}
Note: In this case, the source fields are in the Gateway provider, and the target fields are in the P6 provider.
Note: In this case, the target fields are in the P6 provider.
Configuring Primavera Gateway Settings
Adding an Application Deployment Connection
Adding or Customizing Field Mapping Templates
Exporting Field Mapping Templates
Exporting Field Mapping Templates: Example
Importing Field Mapping Templates
Importing Field Mapping Templates: Example
Legal Notices
Copyright © 2013, 2015,
Oracle and/or its affiliates. All rights reserved.
Last Published Friday, March 27, 2015