Dynamics NAV

Sunday, 11 October 2015

How to Set filters on factbox through code

I would like to set filter on my fact box which is not able to do through page link.

Steps are shown below

I have added below the function in my factbox page and


Set the name for the factbox in our main page.
Now we need to call as shown below in onaftergetRecord trigger


Friday, 19 June 2015

How to add nested sub pages in NAVISION

This is a basic concept of page  designing in NAV.
To add a sub page for another sub page follow below

Add the sub page and properties --> give Provider ID of another sub page,so that we can give the sub page of another sub page.

below example:

 


Friday, 24 April 2015

Exception Info: Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLFieldNotFoundException

Some times client will crash when we convert from NAV2009 R2 to NAV2013.

We may get the following error when we check the Event Viewer

Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLFieldNotFoundException
Stack:
   at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSessionInitializer.Initialize()
   at Microsoft.Dynamics.Framework.UI.Builder.Initialize()
   at Microsoft.Dynamics.Framework.UI.UISession.Initialize()
   at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.InitializeUISession()
   at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.SetupSessions()
   at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.InitCore()
   at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.InitCore()
   at Microsoft.Dynamics.Framework.UI.ClientSessionCore.Init()
   at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.Run()
   at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
   at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
   at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
   at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
   at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunAndDispose()
   at Microsoft.Dynamics.Nav.Client.Program.ExecuteNormally(System.Func`1<Int32>)
   at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])

Solution : 

 When we get this error ,that means our all the tables are not compiled .So we need to recompile all the  objects.Tables those are having data should be compiled.