Вернуться   AXForum > Microsoft Dynamics NAV > NAV: Blogs
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

Опции темы Поиск в этой теме Опции просмотра
Старый 12.03.2018, 08:11   #1  
Blog bot is offline
Blog bot
23,279 / 789 (73) +++++++
Регистрация: 28.10.2006
saurav-nav: 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.


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.

Saurav Dhyani

Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2013 Blog bot NAV: Blogs 0 15.05.2016 18:12
NAV Team: Upgrading from Microsoft Dynamics NAV 2009 R2 or Microsoft Dynamics NAV 2009 SP1 to Microsoft Dynamics NAV 2015 Blog bot Dynamics CRM: Blogs 0 23.02.2015 13:00
Platform updates overview - 3.70.B - NAV2009 R2 Blog bot Dynamics CRM: Blogs 0 07.02.2011 22:06
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2009 SP1 Blog bot Dynamics CRM: Blogs 0 11.06.2010 16:33
german_nav_developer: Buildnummern-Übersicht Microsoft Dynamics NAV 2009 Blog bot Dynamics CRM: Blogs 0 04.06.2010 13:21
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Часовой пояс GMT +3, время: 17:50.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.