Now that I am realizing how much scripting can do I am thinking of all these scenarios to use them. But struggling on the simple things. Basic script if ItemCode= xxx and VendorNo=xxx then I want the SetError message to display. Nothing happens when I set it to a Column post-validate event, tried other events as well.
If oSession.CompanyCode = "ROI" then If oBusObj.EditState = 2 then nItemCode = "" nVendorNo = "" sMsg = "You Need to Use the Item Code in MAS!!!!" rVal = oBusObj.GetValue("ItemCode$", nItemCode) rVal = oBusObj.GetValue("VendorNo$", nVendorNo) If nItemCode = "UMISC" then If nVendorNo = "0001226" then rVal = oScript.SetError(sMsg) End If End If End If End If