refresh problem

sree
sree Member Posts: 41
Hi

we are having Header &Line forms.
In header form iam having one filed orderno is a lookup field.
if i can delete that orderno then particular lines alse want to be delete
from line form

With regards
deepu

Comments

  • kine
    kine Member Posts: 12,562
    And? How it is connected to refreshing something?

    If you want to delete some lines, you need to add correct C/AL code into the action. You can delete the lines from OnValidate or from OnModify of the header (or the field which is changed).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • SteveO
    SteveO Member Posts: 164
    It's better to use the OnModify trigger to do this kind of updating.
    Using the OnValidate trigger can lead to errors.

    This is because OnValidate is run before OnModify and when it is run from a form a COMMIT occurs. This means that any code from the OnValidate will be committed before Navision has checked whether or not you can actually modify that record.

    This could have unintended effects.
    This isn't a signature, I type this at the bottom of every message