SOfferDet::Update (Interface: SOfferDet)
 
Updates an Sales Offer Detail line.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
A sales offer detail line cannot be updated using the update mode umDialog. Otherwise, an exception will be thrown!
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
CreateSOfferDet
SeekBySysNum
SetFieldVal
 
Samples
 
C++
 
// Update the remark of the last inserted record
if (pSOfferDet->SeekBySysNum (smLast, 0))
{
    pSOfferDet->SetFieldVal (sodfRemark, "Remark via SDK");
    pSOfferDet->Update (umFullReport);
}

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

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

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