Skip to main content

AL - Mapping AL with Local NAV Database.

Hi Readers,

In this article, we will discuss how to configure NAV 2018 database to work Side-by-side with C/Side and AL.

Article 1 - How to Install Visual Studio Code.

Pre-Requisites -
1. NAV 2018 installed with Modern Developer Environment.
2. Visual Studio Code installed.

References.


NAV 2018 supports development using both C/SIDE and AL, as well as Designer side-by-side. When we add/modify new objects in C/SIDE it should also reflect in Visual Studio code (AL).

A new command is added in finsql.exe that is generatesymbolreference.

Let's try to execute this command. Remember it is a lengthy process.

1. Open the Command prompt (Run as administrator).


2. Navigate to Path for finsql.exe using the cd command.
** C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client


3. Run the command as below.
** Change servername and Database Name as per your local installation.
finsql.exe Command=generatesymbolreference, Database="NAV110_CAL_AL_Side_by_Side", ServerName=localhost

4. To Continuously generate symbols each time you compile objects in C/SIDE, run below command.
finsql.exe generatesymbolreference=yes


5. Create a new service mapped to the new database created for this exercise.



6. Update NAV Server settings to update generate symbol mapped to the database.
A new setting added in NAV Service tier in Development tab "Enable Symbol Loading at Server Startup." This setting must be enabled to allow any symbol generation.


7. Open Visual Studio Code and use following shortcuts.
Press Alt+A, Alt+L to open the Go! command.
Specify a Path in the Go! the command to create a folder to map.
** You will see Go Windows in the top center of Visual studio code.



Check Folder in explorer.


7. Open the Folder recently created the folder and select launch.json and lets update that file to map to current service tier to generate the symbol.


8. Update parameters, close and save file.

The system will load the default settings as shown below, which specifically set authentication to UserPassword and Server Name as "Your Own Server".


As we are using authentication as Windows. 
Update parameters like Server Name, service Name, authentication.


9. Close visual studio code editor and reopen the editor.



10. If you are using the custom port in development tab, then 7049 you might end up an error message.

11. So let's update the port no in the launch.json and try to download symbol again.

Add Port Number in the launch.json file.


And Load the symbol again.


Hope you are able to execute steps above and able to download symbols in AL. 
Let me know your views on same and if you have any issues.

Regards,
Saurav Dhyani

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.