Sage 100

 View Only
  • 1.  Can I safely assume that a Field Post-Validation s

    Posted 03-23-2014 09:52
    Can I safely assume that a Field Post-Validation script will only fire if the value of the field is CHANGED? :-(


  • 2.  RE: Can I safely assume that a Field Post-Validation s

    Posted 03-24-2014 13:25
    Yes and same is true with Pre-Validate. What are you trying to do?


  • 3.  RE: Can I safely assume that a Field Post-Validation s

    Posted 03-24-2014 14:42
    The BOI script from Sage that changes the Exp Date of a Quote - it doesn't work if you are copying a quote from history because you never change that order type field manually.


  • 4.  RE: Can I safely assume that a Field Post-Validation s

    Posted 03-24-2014 15:10
    Create a new button (and script). Place new btn in same location of the Copy button (BT_COPY). Call that new button ""Copy"". Move / shrink the actual Copy button. Now user sees the Copy button in the same place. Place this script text in the new button. sOrderType = """" retVal = oBusObj.GetValue(""OrderType$"", sOrderType) If sOrderType = ""Q"" Then ' Set the ShipExpireDate expireDate = ""20291231"" 'whatever you want here retVal = oBusObj.SetValue(""ShipExpireDate$"", expireDate) retVal = oScript.SetUIControl(""BT_COPY"",""SHOW"") ' in case you hid it but resizing it to really small would work too retVal = oScript.InvokeButton(""BT_COPY"") retVal = oUIObj.HandleScriptUI() End If


  • 5.  RE: Can I safely assume that a Field Post-Validation s

    Posted 03-24-2014 16:15
    Alnoor - I think the Copy changes the ShipExpire Date to the default when it does the copy, so that would undo what you had previously done, right?


  • 6.  RE: Can I safely assume that a Field Post-Validation s

    Posted 03-24-2014 16:33
    Beth no it doesn't. At least it didn't when I ran it on Moira's client last year


  • 7.  RE: Can I safely assume that a Field Post-Validation s

    Posted 03-24-2014 16:40
    Well, hot ziggity - I'll give it a shot! THANKS, @AlnoorCassim