Venice
SOrder::SeekBySyncStatus
 
Seeks a Sales Order by synchronization status.
 
VARIANT_BOOL SeekBySyncStatus (
    enum eSeekMode eSeekMode,
    BYTE bySyncStatus
)
 
Key information
This method uses key number 8 (See SwapKey).
This key allows duplicates.
This is a null key, only the records where pSyncStatus is not 0 are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pSyncStatusBYTEAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
bySyncStatus
[in] The synchronization status of the record. If the synchronization fields are activated, Venice sets the synchronization status of a new record to 1. If an existing record is modified and its synchronization reference is completed, then Venice will set the synchronization status to 2. When records are inserted or updated using ClSdk, the synchronization fields will never be changed, unless you explicitly call the method SetSyncValues.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateSOrder
SetSyncValues
Update
 
Samples
 
C++
 
// Reset the synchronization status of all records
CString strSyncReference;
while (pSOrder->SeekBySyncStatus (smFirst, 0))
{
    strSyncReference = pSOrder->pSyncReference;
    pSOrder->SetSyncValues (0, (LPCSTR)strSyncReference, VARIANT_FALSE);
    pSOrder->Update (umErrorReport);
}

C#
 
// Reset the synchronization status of all records
while (oSOrder.SeekBySyncStatus (eSeekMode.smFirst, 0))
{
    oSOrder.SetSyncValues (0, oSOrder.pSyncReference.ToString (), false);
    oSOrder.Update (eUpdateMode.umErrorReport);
}

VBS
 
' Reset the synchronization status of all records
While oSOrder.SeekBySyncStatus(smFirst, 0)
    Call oSOrder.SetSyncValues(0, oSOrder.pSyncReference, False)
    Call oSOrder.Update(umErrorReport)
Wend

VB.NET
 
' Reset the synchronization status of all records
While oSOrder.SeekBySyncStatus(eSeekMode.smFirst, 0)
    oSOrder.SetSyncValues(0, oSOrder.pSyncReference, False)
    oSOrder.Update(eUpdateMode.umErrorReport)
End While