Quantcast
Channel: Sage 100
Viewing all articles
Browse latest Browse all 37001

Forum Post: RE: Prevent user to order Item for unauthorized vendors

$
0
0
You said...     It is Column (itemcode) Post validate because we need to make sure the item is a ItemType "1" ... And I said     oScript.SetError only works on pre- events This means that oScript.SetError has NO effect in your script because it is POST validate. You need to remove it from the POST validate event and add it to the PRE validate event. I said:     The variable `value` should be set to the new value for the column in the column pre-validate script. This means if    retVal = oBusObj.GetValue("ItemCode$", ItemCode) returns no value in ItemCode because this is the pre-validate event you can replace this line with     ItemCode = value

Viewing all articles
Browse latest Browse all 37001

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>