How to call a function from codeunit in a page action?

GeneliaGenelia Posts: 1Member
I need to call a function from a codeunit in a page action but nothing happens.
4x8g501jzcbv.png

I can't figure out what is wrong in it

Answers

  • sorenhinrupsorenhinrup Posts: 81Member
    You need to define the code unit in your variables.
    And then call the function as codeunit.function, as seen just above your example.
  • da_nealda_neal Posts: 43Member
    And function in codeunit must be not LOCAL.
Sign In or Register to comment.