Why is it always the simple things that seem to be the hardest? I have a script that I want to run when users delete Sales Order lines. The script should check to see if a UDF is blank and if it is, write a value to the UDF and then complete the delete. Is this possible? or is the pre-delete event already too far deleted to write new values?
a bit of script:
cancelreason = """"
retVal = oBusObj.GetValue(""UDF_CANCEL_REASON$"",cancelreason)
if cancelreason = """" then
retVal = oBusObj.SetValue(""UDF_CANCEL_REASON$"", ""Out of Stock"")
end if
Any help is appreciated!