Form to page transformation issue

LambaLamba Member Posts: 260
edited 2012-05-10 in NAV Three Tier
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!

Answers

  • ChinmoyChinmoy Member Posts: 359
    How did you use CurrPage inside a Form code?
  • thmartinthmartin Member Posts: 90
    I would check if the function GetPhaseTaskSetup really exists on the Sub Page and that that page compiles.
    Thomas Martin
    NAV Developer
  • LambaLamba Member Posts: 260
    The actual code in form was
    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%.
Sign In or Register to comment.