SUbform Not Updating

FunkygrazFunkygraz Member Posts: 12
Quick question,

Im trying to update my subform from my Mainform.

The control im editing is edited using a lookup, and in the OnAfterValidate trigger of the control i have
CurrForm.UPDATE(TRUE);
. This doesnt work, because the onlookup is validated in the table.

Also the subform has a function to update itself as per suggested on Mibuso, but the main form does not have a on validate trigger so im kind of confused on what trigger to use instead. Currently OnModifyRecors has:
CurrForm.ContactListSubform.FORM.UpdateForm();

Neither of the above are working. The control + Subform are both on a tab control. And im thinking that might be the culprit. Any ideas as to what i did wrong?

Comments

  • prabhupdeshprabhupdesh Member Posts: 49
    go to c/al code of the control you are trying to edit and in "on after validate" trigger put the code

    CurrForm.ContactListSubform.FORM.UpdateForm();

    hope this works!!!!
  • FunkygrazFunkygraz Member Posts: 12
    Unfortunately it does not, It does not pass the onaftervalidate trigger of the control. (I tried with a breakpoint before posting the topic).
Sign In or Register to comment.