Venice
PDelivDet::Update
 
Updates a Purchase Delivery Detail line.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
An entry cannot be updated using the dialog (eInsertMode = imDialog or eInsertMode = imDialogFromData), this mode is not supported in this version.
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
CreatePDelivDet
SeekBySysNum
 
Samples
 
C++
 
// Update the remark of the last inserted purchase delivery detail line to 'Updated via SDK'
if (pPDelivDet->SeekBySysNum (smLast, 0))
{
    pPDelivDet->SetFieldVal (pddfRemark, "Updated via SDK");
    pPDelivDet->Update (umFullReport);
}

C#
 
// Update the remark of the last inserted purchase delivery detail line to 'Updated via SDK'
if (oPDelivDet.SeekBySysNum (eSeekMode.smLast, 0))
{
    oPDelivDet.SetFieldVal (ePDelivDetFld.pddfRemark, "Updated via SDK");
    oPDelivDet.Update (eUpdateMode.umFullReport);
}

VBS
 
' Update the remark of the last inserted purchase delivery detail line to 'Updated via SDK'
If oPDelivDet.SeekBySysNum(smLast, 0) Then
    Call oPDelivDet.SetFieldVal(oPDelivDet.GetFieldID("Remark"), "Updated via SDK")
    Call oPDelivDet.Update(umFullReport)
End If

VB.NET
 
' Update the remark of the last inserted purchase delivery detail line to 'Updated via SDK'
If oPDelivDet.SeekBySysNum(eSeekMode.smLast, 0) Then
    oPDelivDet.SetFieldVal(ePDelivDetFld.pddfRemark, "Updated via SDK")
    oPDelivDet.Update(eUpdateMode.umFullReport)
End If