Hmm I'm surprised you had to switch from nDelete(). Are you actually seeing the prompt UI itself appear? Also, are you running the BOI while the S/O Entry UI is open for the order you are updating or open on another order?
For nDeleteLine this is how I would foresee doing it where you get the EditKey first and pass that into the nDeleteLine().
(Using VBScript, ABC company, oSO for Header, oLines for the Lines)
LineKey = "" : EditKey = ""retVal = oSO.oLines.nGetValue("LineKey$", LineKey)EditKey = oSO.oLines.sGetEditKey(LineKey) 'returns concatenated OrderNo + LineSeqNo + LineKeyrtnDel = oSO.oLines.nDeleteLine(EditKey)
If rtnDel Then retVal = oSO.oLines.nAddLine()retVal = oSO.oLines.nSetValue("ItemCode$", "6655")retVal = oSO.oLines.nSetValue("QuantityOrdered", 2)retVal = oSO.oLines.nWrite()End If------------------------------
Alnoor Cassim
Accounting Systems, Inc. (ASI)
Email:
alnoor@asifocus.comOrange County, CA
------------------------------