NAV 2017 How to get a Page Variable from a Codeunit

Hi

I created a Page and I am using variables to enter data( variables are not part of a table). On an Action I am running a Codeunit but I need a few of the page variables to use it on the codeunit.

How can I get page variables on the codeunit?

I did create a page functions to return the variables data and I did call then on the codeunit but there return value is empty.

Ideas?

Thx.

  • In the Codeunit create variables and when you pass the variables from your page to the codeunit make sure you pass the variable by value and not by reference, in other words what I mean is check the first boolean column to true and then pass the variable. The variable value from your page will get carried over to the codeunit which you can then use.

    Thanks
    RJ.
Related