xref:populateXrefRowNVP
Syntax
xref:populateXRefRowNVP(mapName, referenceDomain, referenceNVP, targetDomain, targetNVP, mode)
Description
Use the xref:populateXrefRowNVP function to populate multiple elements in the cross-reference map with values.
Parameters
| Parameter | Description |
|---|---|
|
mapName |
The name of the cross-reference map, as string. |
|
referenceDomain |
The name of the reference domain, as string. |
|
rreferencesNVP |
NVP list of reference elements and values, as string. |
|
targetDomain |
The name of the domain to be populated, as string. |
|
targetNVP |
NVP list of elements and values to be populated in the elements, as string. |
|
mode |
The mode in which the function populates the element. You can specify any of the following values: ADD, LINK, or UPDATE. The mode parameter values are case-sensitive and must be specified in the uppercase only. |
Returns
This table lists the results for the populateXrefRowNVP function.
| Mode | Reference Value | Value to Be Added | Result |
|---|---|---|---|
|
ADD |
Absent Present Present |
Absent Absent Present |
Success Exception Exception |
|
LINK |
Absent Present Present |
Absent Absent Present |
Exception Success Exception |
|
UPDATE |
Absent Present Present |
Absent Absent Present |
Exception Exception Success |
Example
This table lists the modes with their descriptions and exception reasons:
| Mode | Description | Exception Reasons |
|---|---|---|
|
ADD |
Adds the reference value and the value to be added. For example:
adds the reference values SHARE/1005 in the PeopleSoft domain and the value <guid1> in the Common domain. |
Exceptions can occur for the following reasons:
|
|
LINK |
Adds the cross-reference value corresponding to the existing reference value. For example:
adds value RP005 to the Retail domain and links it to reference values SHARE/1005 in the PeopleSoft domain. |
Exceptions can occur due for following reasons:
|
|
UPDATE |
Updates the cross-reference value corresponding to an existing reference element-value pair. For example:
updates the value 1000 in the ItemID element of the PeopleSoft domain to value 10000. |
Exceptions can occur for the following reasons:
|