CreateDataRelation Method
Description
Creates a new asset relation and sets it to be the data source relation for this entity.
Syntax
Visual Basic
Public Function CreateDataRelation( _
   ByVal resourceId As Long, _
   ByVal mapping As String _
) As Object
Parameters
resourceId
The QCResource.ID of the asset to be linked.
mapping

An XML string that links the test parameters to the fields in the data source. This example links the flight_number field in the data source to the test parameter FlightNo:

<MappingData>
   <MappingElement>
      <ParameterName><![CDATA[FlightNo&cd;></ParameterName>
      <MappedToName><![CDATA[flight_number&cd;></MappedToName>
   </MappingElement>
</
MappingData>

Return Type
See Also