CopyFields

<< Fare clic per visualizzazione il sommario >>

Percorso:  Il linguaggio OEL > Funzioni >

CopyFields

Replace the DataSet in the destinationDataSet parameter with the dataset in the sourceDataSet parameter. For example, Dataset1 contains element (key1, value2, key2, value2, key3, value3) and Dataset2 contains element (key4, value4, key5, value5). CopyFields (DataSet1, DataSet2) returns DataSet1 with the following fields (key4, value4, key5, value5), the other fields will no longer be available. Warning: if the function is used to replace the additional fields of a resource, make sure that the definition of the resource is consistent with the new fields before the operation.

 

Function

CopyFields(IDataSet destinationDataSet, IDataSet sourceDataSet)

 

Input parameters

Name

Description

Type

Optional

destinationDataSet

Dataset where the fields (key-value pairs) will be substituted

IDataSet

 

sourceDataSet

Dataset from which the fields (key-value pairs) will be replicate

IDataSet

 

 

Return Value

Value

IDataSet