uaPLUS Reference
UpdateReplace(Int32[],DateTime[],Object[],Int32[],Int32[]) Method
See Also  Send Feedback
I_HDAPlugin Namespace > IAppPlugin Interface > UpdateReplace Method : UpdateReplace(Int32[],DateTime[],Object[],Int32[],Int32[]) Method

serverHnd
The list of server item handles for the items to be replaced.
timeStamps
Array of the time stamps for the new values.
dataValues
Array of objects which contain the new item values.
qualities
Array of the quality flags of the new values. These are the Data Access Quality flags, not the HDA quality flags.
errors
Array of HRESULTS indicating whether the corresponding server handle was valid.

Glossary Item Box

Professional Edition only.
This method replaces the values and qualities in the history database at the specified timestamps for one or more items. If no value exists at the specified timestamp, the new value shall not be inserted; instead errors shall indicate an error. This method is intended to replace existing values at the specified timestamp; e.g., correct lab data that was improperly processed, but inserted into the history database. The serverHnd, timeStamps, dataValues and qualities are arrays of equal size. To replace the values for a number of different items at a single time, then timeStamps array would have the same time for each item. To replace a stream of values, timestamps and qualities for a single item, set the size of the item array to the number of values to be replaced and put the same ItemID in each element.

Syntax

Visual Basic (Declaration) 
Overloads Function UpdateReplace( _
   ByVal serverHnd() As Integer, _
   ByVal timeStamps() As Date, _
   ByVal dataValues() As Object, _
   ByVal qualities() As Integer, _
   ByRef errors As Integer() _
) As Integer
C# 
int UpdateReplace( 
   int[] serverHnd,
   DateTime[] timeStamps,
   object[] dataValues,
   int[] qualities,
   out int[] errors
)

Parameters

serverHnd
The list of server item handles for the items to be replaced.
timeStamps
Array of the time stamps for the new values.
dataValues
Array of objects which contain the new item values.
qualities
Array of the quality flags of the new values. These are the Data Access Quality flags, not the HDA quality flags.
errors
Array of HRESULTS indicating whether the corresponding server handle was valid.

Return Value

HRESULTS success/error code.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.