OnInit on Table

fmhigue
fmhigue Member Posts: 290
edited 2004-05-20 in Navision Attain
How can I see then OnInit section on Table 36.

As you see I am learning Navision.

Thank you in advance

:oops:

Comments

  • RobertMo
    RobertMo Member Posts: 484
    there is no OnInit trigger in any Table... only on forms
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • fmhigue
    fmhigue Member Posts: 290
    It was on Init Record().

    On the context box it says Table36 Sales Header\OnInsert()
  • RobertMo
    RobertMo Member Posts: 484
    There is a big difference between OnInit and OnInsert :!:
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • StephenG
    StephenG Member Posts: 99
    InitRecord is a function on the "Sales Header" table that is called from the OnInsert trigger.

    To see the code in this function Open the "Sales Header" table in design mode, Go to the last field in the list, then press F9 for the C/AL code, you will see the code for the function after the code of the last field. :)
    Answer the question and wait for the answer.
  • RobertMo
    RobertMo Member Posts: 484
    I was so much focusing on OnInit that I haven't rememebered of InitRecord :oops:
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • fmhigue
    fmhigue Member Posts: 290
    :lol:

    Thank you a lot guys I learned something new and I solved my problem.