Scripting

  • 1.  What rules would cause ""Not in IOList"" error on SO

    Posted 06-30-2017 08:56
    What rules would cause ""Not in IOList"" error on SO Order Lines object (called from ItemCode column Post_Validation. I checked this by putting the SetValue immediately after the successful GetValue on the same Unit of Measure field. retval=oBusObj.GetValue(""ItemType$"",sItemType) retval = oBusObj.GetValue(""UnitOfMeasure"",sSalesUOM) retval = oBusObj.SetValue(""UnitOfMeasure"",sSalesUOM) ! Returns ""Column is not in the IOList"" as LastErrorMsg sMsg = "" Setting Unit of Measure - Last error was: "" & oBusObj.LastErrorMsg ' returns Column is not in the IOList - ?? that column used OK above in GetValue retval = oSession.AsObject(oSession.UI).MessageBox("""",sMsg)


  • 2.  RE: What rules would cause ""Not in IOList"" error on SO

    Posted 06-30-2017 08:58
    UnitOfMeasure should be a string field and you are missing the ""$"".


  • 3.  RE: What rules would cause ""Not in IOList"" error on SO

    Posted 06-30-2017 09:42
    Details, details. Good catch, thanks.


  • 4.  RE: What rules would cause ""Not in IOList"" error on SO

    Posted 06-30-2017 11:15
    can say that again. This particular scenario can easily happen when editing in notepad++. At least for me, it doesn't automatically select the ""$"" when you double click on a value between double quotes. So there have been times i was selectively copying field names and missed the fact it didn't pick up the ""$"", An easy way to catch this would be if you are consistent in your variable naming and spacing, You can use this regex expression ""\w"",( s|s)"" without the outside double quotes to find all lines where there is not a ""$"" following the field name and the variable after the comma starts with s.


  • 5.  RE: What rules would cause ""Not in IOList"" error on SO

    Posted 06-30-2017 13:56
    Interesting, thanks.