Execute code when clicking a record in a table (in a form)

Hi so apparently no trigger is activated when i am clicking on a record. My intentions are to update a subform after clicking on a record on the parent form. is there a way to implement this ?

Best Answers

  • AlexDenAlexDen Member Posts: 72
    Accepted Answer
    Hi,

    You can use OnAfterGetCurrRecord() event in this case.
  • Big_DBig_D Member Posts: 203
    Accepted Answer
    If looking at the Sales Order Form - there is the following function

    ApproveCalcInvDisc()
    CurrForm.SalesLines.FORM.ApproveCalcInvDisc;

    This is calling the function ApproveCalcInvDisc which lives on the connected subform.

    Hope this answers your question!
    Big D signing off!

Answers

  • AlexDenAlexDen Member Posts: 72
    Accepted Answer
    Hi,

    You can use OnAfterGetCurrRecord() event in this case.
  • Big_DBig_D Member Posts: 203
    Accepted Answer
    If looking at the Sales Order Form - there is the following function

    ApproveCalcInvDisc()
    CurrForm.SalesLines.FORM.ApproveCalcInvDisc;

    This is calling the function ApproveCalcInvDisc which lives on the connected subform.

    Hope this answers your question!
    Big D signing off!
  • RockWithNAVRockWithNAV Member Posts: 990
    You need to understand Events very deeply if you want achieve all these stuffs on standard NAV in Business Central.
  • Big_DBig_D Member Posts: 203
    That maybe true RockWithNAV but this is a NAV Classic query :) !
    Big D signing off!
Sign In or Register to comment.