TrackingServicesRecordNewItemData Method |
Records a collection of new data against an open transaction and its related
Item(s).
This includes quality, test, and parametric data such as
Defects,
Symptoms, and
Measurements.
If the ItemId and/or ItemUID properties of the
TrackedDataItem are set to valid values,
the
TrackedDataItem will be recorded against the specified
Item. If these
properties are left null and/or blank, then the
TrackedDataItem will be recorded against all
Items associated with the transaction. If the ItemId and/or ItemUID properties are used,
and they represent
Items not associated with the specified transaction, the method will fail.
Namespace:
FactoryLogix.xTend.Production
Assembly:
FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.245.0.0 (8.245.0.0)
Syntax public IEnumerable<TrackedDataItem> RecordNewItemData(
Guid sessionId,
Guid transactionId,
TrackedDataItem[] newDataItems
)
Public Function RecordNewItemData (
sessionId As Guid,
transactionId As Guid,
newDataItems As TrackedDataItem()
) As IEnumerable(Of TrackedDataItem)
public:
virtual IEnumerable<TrackedDataItem^>^ RecordNewItemData(
Guid sessionId,
Guid transactionId,
array<TrackedDataItem^>^ newDataItems
) sealed
abstract RecordNewItemData :
sessionId : Guid *
transactionId : Guid *
newDataItems : TrackedDataItem[] -> IEnumerable<TrackedDataItem>
override RecordNewItemData :
sessionId : Guid *
transactionId : Guid *
newDataItems : TrackedDataItem[] -> IEnumerable<TrackedDataItem>
Parameters
- sessionId
- Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method. - transactionId
- Type: SystemGuid
The transaction Id returned by the TransactionId property of the StartResult. - newDataItems
- Type: FactoryLogix.xTend.DataObjectsTrackedDataItem
A list of data objects derived from TrackedDataItem representing the new data to be recorded.
Return Value
Type:
IEnumerableTrackedDataItem
A list of objects derived from
TrackedDataItem representing the newly recorded data, with valid Id properties.
Should an error occur during data recording for a sub-set of the newDataItems, the returned list may be smaller than the original
Exceptions See Also