Fiels on Sales Line get update when I change to next line.

fmhiguefmhigue Member Posts: 290
I got a field call "Location Class" on the Sales Order Subform. LocationClass it's a global variable.

On OnAfterGetRecord() I got a function call GetLocationClass() but the value from the item gets updated when I change to the next line. Is there any way to do it when I type Stock No.?

Comments

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    Stock No. - OnValidate() or
    Stock No. - OnAfterValidate()

    It depends on what you want to do.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • fmhiguefmhigue Member Posts: 290
    einsTeIn.NET:

    The fields are on the form only. not on the sales line table.
  • SavatageSavatage Member Posts: 7,142
    go to the form & designer. Click on your field press F9 (if you can get to the code)

    there will be Validate & OnAfterValidate trigger you can use.
  • fmhiguefmhigue Member Posts: 290
    Savatage:
    Thank you a lot
Sign In or Register to comment.