currForm.UPADTE

FranklinFranklin Member Posts: 253
Good morning,

I take this thread to ask something because this is just my problem.

I have done the following:

In the form header insert an item, when does the OnValidate the head table, I inserted lines in all its bill of materials (not exactly like that but would be an example for you to understand) but instead of updating all lines, I just updated the latest and until I click on the subform does not appear to me all.

I have the following:

OnValidate main form field -> CurrForm.MySubform.FORM.UpdateSubform

In the subform -> I do function... called UpdateSubform and i write -> CurrForm.UPDATE;

When I do the validate the header only shows me the last record of the line, then I click on the lines and I get all.

Comments

  • Kc_NirvanaKc_Nirvana Member Posts: 146
    Have you tried the
    CurrForm.UPDATEFORM in the header?
    Junior Consultant & Developer in Dynamics NAV

    "I'm worse at what I do best
    And for this gift I feel blessed
    Our little group has always been
    And always will until the end"

    Nirvana - Nevermind - Smells Like Teen Spirit
  • Purvesh_MaisuriaPurvesh_Maisuria Member Posts: 71
    Hi Franklin,

    Try This,

    Put these line of code On OnAfterValidate Event.

    CurrForm.UPDATE(FALSE);
    CurrForm.UPDATECONTROLS;

    Hope This will Solve Ur Problem.

    Thanks & Regards,
    Purvesh Maisuria.
  • FranklinFranklin Member Posts: 253
    Buffff i have already solved it...

    The problem was with a property of the subform... The property "MultipleNewLines" was in NO and i have changed to YES and it works perfectly... x-files... :?
Sign In or Register to comment.