I'm running into an issue that seems to only happen after selecting BM Options for an Item. I have a UDF in SO Details that I would like to save a value. I am firing the script on Table-Post-Write. Here is the setValue part of the script: retVal = oBusObj.SetValue("UDF_COMPLETE_PART_NO$", strPartNo) msgBox("Return Value = " & retVal) ' Always returns True if retVal = 1 then retVal = oBusObj.Write() ' Never returns True msgBox("Return Value = " & retVal) end if The SetValue always returns a 1, so it's getting set but the value doesn't appear in the UDF when I move to the next line. If I go back and change the Quantity Ordered, it saves the value. Any feedback would be greatly appreciated.
↧