Hi..
I have code written on 1 of the menuitems of function of a form as:
CurrPage.SalesLines.FORM.GetPhaseTaskSetup;
As i transform the form into page, it shows error that you have defined an unknown variable GetPhaseTaskSetup.
As the CurrPage.SalesLines works but in pages action it couldn't find .FORM.GetPhaseTaskSetup.
What must be the solution!
0
Answers
NAV Developer
CurrForm.SalesLines.FORM.GetPhaseTaskSetup;
When we transform the form to a page
it automatically changes the code to
CurrPage.SalesLines.FORM.GetPhaseTaskSetup;
and it shows the compilation error.
Simple solution was to get out of object and recompile.
if the error still exists then we have to get the code thru F%.