Venice
POfferDet::Update
 
Updates an Purchase Offer Detail line.
 
void Update (
    enum eUpdateMode eUpdateMode
)
 
Parameters
eUpdateMode
[in] A value of the 'eUpdateMode' enumeration.
 
Remarks
A purchase offer detail line cannot be updated using the update mode umDialog. Otherwise, an exception will be thrown!
 
See Also
CreatePOfferDet
SeekBySysNum
SetFieldVal
 
Samples
 
C++
 
// Update the remark of the last inserted record
if (pPOfferDet->SeekBySysNum (smLast, 0))
{
    pPOfferDet->SetFieldVal (podfRemark, "Remark via SDK");
    pPOfferDet->Update (umFullReport);
}

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

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

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