Hi All,
I am working on what should be a pretty simple script. Got it to work but then changed the trigger for it and now I cannot get it to fire off. I have setup one of the categories in inventory as "Raw". I will enter Y in the items that I want to prevent from being sold. I mapped it down to SO Detail (and it is coming over). But the script never fires the warning. I had put in a message box to be sure that it "saw" the value in the UDF_RAW, which it did. Just never comes up with the error box. I think I am missing something obvious but can't see what.
Thanks!
'Do not allow sales of raw items
'Bob Osborn, ACI
sRaw = ""
retVal = oBusObj.GetValue("UDF_RAW$", sRaw)
If (sRaw <> "Y") Then
' Fall through - no error
Else
retVal = oScript.SetError("Warning! This is a raw item")
End If