microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
748 stars 245 forks source link

CurrPage.Close doesn't work #1640

Closed olisterr closed 6 years ago

olisterr commented 6 years ago

Hi, I've a page that is run through the code. And code is written OnQueryClose trigger. The code is executed but the Current Page doesn't get closed

StanislawStempin commented 6 years ago

Could you please provide a code sample for us to understand the problem better?

thpeder commented 6 years ago

@olisterrcf In the February update this should be fixed.

olisterr commented 6 years ago

Hi, I've already installed NAV 2018 CU2. I've a page i.e "page1" which calls another page's ie. "page2" global method a.k.a page2.function1() and then runs the page using page2.RUN. OnQueryClosePage trigger of page2, I've called the global method of Page1 using a.k.a page1.function2().

The method page1.function2() is executed properly but, page 2 doesn't close.

olisterr commented 6 years ago

Hi, I've also check calling the page without adding code in OnQueryClosePage trigger, the page closes. If I add the trigger and put a message box the page doesn't close.

StanislawStempin commented 6 years ago

February Update refers to the latest Developer Preview release for Dynamics 365 "Tenerife". Please see this FAQ entry for more details on NAV 2018 issues: https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions#nav-2018-issues

doivosevic commented 6 years ago

Please use standard channels for support of Nav 2018 as said https://github.com/Microsoft/AL/wiki/Frequently-Asked-Questions#i-found-an-issue-on-nav-2018-what-do-i-do