Venice
POrderDet::Update
 
Updates an Purchase Order 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
CreatePOrderDet
SeekBySysNum
SetFieldVal
 
Samples
 
C++
 
// Update the remark of the last inserted record
if (pPOrderDet->SeekBySysNum (smLast, 0))
{
    pPOrderDet->SetFieldVal (prdfRemark, "Remark via SDK");
    pPOrderDet->Update (umFullReport);
}

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

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

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