|
Updates an Sales Order Detail line. |
|
|
void Update ( enum eUpdateMode eUpdateMode ) |
|
|
Parameters | eUpdateMode | [in] A value of the 'eUpdateMode' enumeration. | | Remarks |
| 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 |
|
|
|
Samples |
|
|
C++ |
|
// Update the remark of the last inserted record
if (pSOrderDet->SeekBySysNum (smLast, 0))
{
pSOrderDet->SetFieldVal (srdfRemark, "Remark via SDK");
pSOrderDet->Update (umFullReport);
}
|
|
|
C# |
|
// Update the remark of the last inserted record
if (oSOrderDet.SeekBySysNum (eSeekMode.smLast, 0))
{
oSOrderDet.SetFieldVal (eSOrderDetFld.srdfRemark, "Remark via SDK");
oSOrderDet.Update (eUpdateMode.umFullReport);
}
|
|
|
VBS |
|
' Update the remark of the last inserted record
If oSOrderDet.SeekBySysNum(smLast, 0) Then
Call oSOrderDet.SetFieldVal(oSOrderDet.GetFieldID("Remark"), "Remark via SDK")
Call oSOrderDet.Update(umFullReport)
End If
|
|
|
VB.NET |
|
' Update the remark of the last inserted record
If oSOrderDet.SeekBySysNum(eSeekMode.smLast, 0) Then
oSOrderDet.SetFieldVal(eSOrderDetFld.srdfRemark, "Remark via SDK")
oSOrderDet.Update(eUpdateMode.umFullReport)
End If
|
|