MarkForDeleteNVP
Syntax
MarkForDeleteNVP (mapName, referenceDomain, referenceNVP)
Description
Delete a set of values in a cross-reference map for a specified domain. The values in the elements are marked as deleted. If only two mappings are in a row and one of them is marked for deletion, then the value in the other domain will also be deleted. Any values marked for delete are treated as if they do not exist. Therefore, you can populate the same elements with xref:populateXRefRowNVP function in ADD mode. However, using the values marked for delete as a reference value in the LINK mode of the xref:populateXRefRowNVP function would cause an error.
Parameters
| Parameter | Description |
|---|---|
|
mapName |
Name of a dynamic (cross-reference) value map definition, as string. |
|
referenceDomain |
Name of a domain in the Xref from which to delete values, as string. |
|
referenceNVP |
Name value pairs of elements and values in the reference domain to be deleted, as an array of DataElement. |
Returns
True if the delete succeeds.
Example
This example deletes the specified values in the EBS domain from the Items cross-reference map:
Local array of EOTF_CORE:Common:DataElement &ebsNVP1 = CreateArrayRept(create EOTF_⇒
⇒
⇒
⇒
⇒
CORE:Common:DataElement(&EBS1), 1);
&ebsNVP1 [1].value = &value1;
Local boolean &return = &xref.MarkForDeleteNVP("Items", &EBS1, &ebsNVP1);