Scripting

  • 1.  Copied header ShipExpireDate to line PromiseDate initially displays as YYYYMMDD then reverts to m/d/yyyy

    Posted 02-13-2024 02:39
    Edited by Dan Burleson 02-13-2024 02:47

    Is this a version 2020 Sales Order Entry WAD? Or is there something one can do to get this 8 byte date field to display correctly on an added line as m/d/yyyy initially instead of having to change panels then return?

    The SO lines grid is "GD_Lines" which is supposed to be loaded automatically on exit of the script if line(s) have been added. I also tried loading it explicitly and get a retVal = 0.



    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-224-6642
    ------------------------------



  • 2.  RE: Copied header ShipExpireDate to line PromiseDate initially displays as YYYYMMDD then reverts to m/d/yyyy

    Posted 02-13-2024 10:31

    Grid display issues are always hard.  I often suggest putting the affected field(s) into the lower grid, which gets refreshed by changing lines.



    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 3.  RE: Copied header ShipExpireDate to line PromiseDate initially displays as YYYYMMDD then reverts to m/d/yyyy

    Posted 02-13-2024 14:56

    Thanks @Kevin Moyes for the good tip.

    It just seems there should be a method to refresh the main grid if the .LinesAdded property is greater than zero. Hmmmm...



    ------------------------------
    Dan Burleson
    Software Consultant
    Connex Software
    Corvallis OR
    541-224-6642
    ------------------------------