SInvceDet::Update (Interface: SInvceDet)
 
Updates a Sales 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
CreateSInvceDet
SeekBySysNum
 
Samples
 
C++
 
// Update the remark of the last inserted sales invoice detail line to 'Updated via SDK'
if (pSInvceDet->SeekBySysNum (smLast, 0))
{
    pSInvceDet->SetFieldVal (sidfRemark, "Updated via SDK");
    pSInvceDet->Update (umFullReport);
}

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

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

VB.NET
 
' Update the remark of the last inserted sales invoice detail line to 'Updated via SDK'
If oSInvceDet.SeekBySysNum(eSeekMode.smLast, 0) Then
    oSInvceDet.SetFieldVal(eSInvceDetFld.sidfRemark, "Updated via SDK")
    oSInvceDet.Update(eUpdateMode.umFullReport)
End If