Options

Update a field on "editable = false" in OnValidate

BraxBrax Member Posts: 4
edited 2017-04-18 in NAV Three Tier
Hi guys,

In Sales Order Subform (Sales Lines), I need to update a field on "editable = false" when I write something in a specific field on Sales Order (Sales Header).

Is it possible on NAV 2013 R2?

Thanks in advance.

Answers

  • Options
    vaprogvaprog Member Posts: 1,118
    The editable property pertains to the UI. In code (OnValidate) you can still modify the field. This applies to all version of NAV.

    In case you want to update the editable property of a control in the subpage, you need to do this from within the subpage in just the same way as if it was a standalone page. Check out the UpdateForm function on the Sales Order Subform page for an example on how to update the subpage from the header page (this example does not modify the editable status, but you see the principle of updating the subpage from the header)
  • Options
    krikikriki Member, Moderator Posts: 9,089
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.