Scripting

  • 1.  Sage 4.5Need to get the value of prod line and qt

    Posted 02-02-2016 14:39
    Sage 4.5 Need to get the value of prod line and qty ordered SO Invoice on post column validate set to qty ordered. Set up to debug in a Trace Window. The following gives me the prod line but never the qty ordered (tried shipped too). Tried with just the QtyOrd and remmed out product line, still no qty ordered. Is it 4.5 issue or am I doing something wrong? QtyOrd = """" ProdLine = """" retval = oBusObj.GetValue(""QuantityOrdered"", QtyOrd) retval = oBusObj.GetValue(""ProductLine$"", ProdLine) retVal = oScript.DebugPrint(QtyOrd) retVal = oScript.DebugPrint(ProdLine)


  • 2.  RE: Sage 4.5Need to get the value of prod line and qt

    Posted 02-02-2016 14:45
    Change QtyOrd = 0 (instead QtyOrd=""""), then try CStr(QtyOrd) in the DebugPrint.


  • 3.  RE: Sage 4.5Need to get the value of prod line and qt

    Posted 02-02-2016 14:51
    That was it, thank you @SteveIwanowski