Venice
PInvceDet::Update
 
Updates a Purchase Invoice 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
CreatePInvceDet
SeekBySysNum
 
Samples
 
C++
 
// Update the remark of the last inserted purchase invoice detail line to 'Updated via SDK'
if (pPInvceDet->SeekBySysNum (smLast, 0))
{
    pPInvceDet->SetFieldVal (pidfRemark, "Updated via SDK");
    pPInvceDet->Update (umFullReport);
}

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

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

VB.NET
 
' Update the remark of the last inserted purchase invoice detail line to 'Updated via SDK'
If oPInvceDet.SeekBySysNum(eSeekMode.smLast, 0) Then
    oPInvceDet.SetFieldVal(ePInvceDetFld.pidfRemark, "Updated via SDK")
    oPInvceDet.Update(eUpdateMode.umFullReport)
End If