Venice
StockDocDet::Update
 
Updates an Stock Document Detail line.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
Updating a record destroys the object positioning that was previously established via a SeekBy-method and the GetNext/GetPrevious-methods. The results of calling GetNext or GetPrevious after an update are not guaranteed.
 
See Also
CreateStockDocDet
SeekBySysNum
SetFieldVal
 
Samples
 
C++
 
// Update the remark of the last inserted record
if (pStockDocDet->SeekBySysNum (smLast, 0))
{
    pStockDocDet->SetFieldVal (scdfRemark, "Remark via SDK");
    pStockDocDet->Update (umFullReport);
}

C#
 
// Update the remark of the last inserted record
if (oStockDocDet.SeekBySysNum (eSeekMode.smLast, 0))
{
    oStockDocDet.SetFieldVal (eStockDocDetFld.scdfRemark, "Remark via SDK");
    oStockDocDet.Update (eUpdateMode.umFullReport);
}

VBS
 
' Update the remark of the last inserted record
If oStockDocDet.SeekBySysNum(smLast, 0) Then
    Call oStockDocDet.SetFieldVal(oStockDocDet.GetFieldID("Remark"), "Remark via SDK")
    Call oStockDocDet.Update(umFullReport)
End If

VB.NET
 
' Update the remark of the last inserted record
If oStockDocDet.SeekBySysNum(eSeekMode.smLast, 0) Then
    oStockDocDet.SetFieldVal(eStockDocDetFld.scdfRemark, "Remark via SDK")
    oStockDocDet.Update(eUpdateMode.umFullReport)
End If