Page Not Open Error

st0328st0328 Member Posts: 97
edited 2011-08-24 in NAV Three Tier
Hi All,

From the customized page we are calling one new Report from there we are calling New CU here.,
we are inserting two records in T81, T81 is taken as Global Variable.

After inserting the records we are running Page 255(Cash Receipt Journal).

The page is running but, a strange error is coming.

The below is the Error
Microsoft Dynamics NAV
Page is not open.



Page View - Cash Receipt Journal - STANDARD ∙ TESTCASH ∙ 10000 must close.
OK


After this page is closing

Please give me suggestions...

Comments

  • sunmorningindiasunmorningindia Member Posts: 65
    Hi,
    I am not sure, try to use commit after insert (Insert/modify).
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Journals have C/AL code in the OnOpenPage trigger. Maybe your code structure has a conflict with this standard code.
  • chengalasettyvsraochengalasettyvsrao Member Posts: 711
    Check the values in the fields Type , Sub Type of General Journal templates for Cash receipt Journal.
  • st0328st0328 Member Posts: 97
    Hi,
    I am not sure, try to use commit after insert (Insert/modify).


    Thanks for the Reply..

    we already tried with Commit. But, no use..
  • st0328st0328 Member Posts: 97
    Journals have C/AL code in the OnOpenPage trigger. Maybe your code structure has a conflict with this standard code.

    Thanks For the reply,..

    we are not filtering the T81 ..
    jus used PAGE.RUN(255)
  • st0328st0328 Member Posts: 97
    Check the values in the fields Type , Sub Type of General Journal templates for Cash receipt Journal.


    Can you explain it more briefly. I am not getting your view.
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    Normally you would debug such a thing but since that is difficult on the RTC I would put some message boxed in the code. My guess is that you have a conflict with the onopenpage code.
  • st0328st0328 Member Posts: 97
    Hi Mark Brummel,

    As u said, i kept the messages in OnINIT & OnOpenPage Triggers of the page.
    The message from OnInit is only executing. And the Page is opening with an error message.

    The Trigger OnOpenpage is Not Executing .
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    There must be more code than just page.run(255).

    I just tried to run that in a Cronus database and it works fine.
Sign In or Register to comment.