LINK: http://msdynamicsnav.guru/wp/tag/nav-2018/

Wie installiere ich NAV 2018?
http://msdynamicsnav.guru/wp/totovic/how-to-install-nav-2018/0089047/

Dienste (Serivce) Einstellungen für NAV 2018
http://msdynamicsnav.guru/wp/roberto-stefanetti/nav-2018-service-options-recap/0088701/

Wie connecte ich Visual Studio mit der App?
http://msdynamicsnav.guru/wp/kauffmann/how-to-connect-visual-studio-code-with-nav-2018/0092221/

Visual Code – Beispiel Code – YouTube Viedeo von Lern4Nav

Dynamics NAV Design und Programmierung: Anlegen von zusätzlichen Felder in Tabellen

Beispielzitate

https://blogs.msdn.microsoft.com/nav/2016/12/20/announcing-the-preview-of-development-tools-for-dynamics-nav/

Wie erstelle ich eine neue Extension V2?
https://docs.microsoft.com/de-de/dynamics-nav/developer/devenv-get-started

Schreibe Deinen ersten Beispiel-Code
https://docs.microsoft.com/de-de/dynamics-nav/developer/devenv-extension-example

Wie installiere ich eine Extensions V2?
https://docs.microsoft.com/de-de/dynamics-nav/developer/devenv-extension-install-code

Wie veröffentliche ich eine Extensions V2?
https://docs.microsoft.com/de-de/dynamics-nav/developer/devenv-how-publish-and-install-an-extension-v2

Links von MBesoeo

https://mibuso.com/downloads/nav-techdays-2017-rock-n-roll-with-vscode

Auszug vom NAVGURU
Quelle:
http://msdynamicsnav.guru/wp/kauffmann/how-to-connect-visual-studio-code-with-nav-2018/0092221/
https://mibuso.com/downloads/nav-techdays-2017-easier-and-devops-friendly-nav-environments-using-docker-windows-containers

Siehe Screenshoots

Last couple of days, I got a number of questions from people that all came down to the same issue: how to set the correct settings in the launch.json so Visual Studio Code can connect to NAV 2018. In most cases I saw the same mistake being made. A logical mistake, but also one that leaves you probably wondering why it works that way.
Let’s assume you have enabled the development port in your NAV 2018. Look here to read how that is done.
When you create a new workspace in VS Code with the AL:Go! command, you get by default a launch.json that looks like this:

Basically the only thing you need to change is the servername. In my case that would be navserver. Some people also change the default developer port 7049 to another port number, let’s say 7149. A common mistake is to put that port number into the server url.

Let’s see what happens when we try to download the symbol files.

It uses port number 7049! How is that possible?
The port number in the server url is just ignored. Instead you should specify the port number with a separate setting. If that setting is missing, then the default port number 7049 is used. Let’s specify the port number and see what happens.

Let’s download the symbol files again, and watch the url.

Conclusion: do not specify a port number in the server url. Instead, use the port setting to specify the developer port number.
Another common mistake is that the server url and the web client url are assumed to be the same. That is not the case. The two settings we talked about above, the server url and the developer port number, are the only settings you need in the launch.json.
When VS Code publishes the extension to the NAV server, the NAV server returns the web client url as a response. This url is then opened in the browser. No setting needed in the launch.json at all.
The NAV server reads that setting from the Web Client Base Url server setting.
Let’s prove that with an example. In the next screenshot, I set the key to a different value. Sorry, it’s PowerShell, I only have NAV 2018 installed with docker images.

How to check the output? Well, I can of course show a browser screen with that url, but would that prove my point? So I figured that a Fiddler trace would probably more convincing. Here is the Fiddler trace when VS Code publishes the extensions to the server.

Look at the response, it contains the setting that I did with the PowerShell command.
And here is what happens when the Web Client Base Url is not set:

I hope this demystifies how VS Code and the NAV server work together!

Categories:

Tags:

No responses yet

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.