My Blog to PDF, 2014-2016


My Blog to PDF, 2014, 2016

blog-pdf

Roberto Stefanetti NAV Blog, 2014-2016   roberto-stefanetti-mvp-nav-blog-2014-2016

Others PDF

Roberto Stefanetti My First Blog, 2014-2016  roberto-stefanetti-my-firts-nav-blog-some-posts

Microsoft TechNet Wiki  social-technet-microsoft-com-tag-stefanetti

Microsoft TechNet Gallery  gallery-technet-microsoft-com-technet-gallery-stefanetti

Advertisements

Dynamics NAV in Remote App Mode


Dynamics NAV in Remote App Mode

Some people have asked me information on how to use the NAV Windows Client (ex RTC) in remote app mode.
This environment can be useful for those still using the NAV Windows Client (in a few years I think that you will only use the Web Client or NAV in SaaS Mode).
In various forums there are many posts about this topic, I bring my personal experience about this topic.

About my Experience
I use it for many years and I must say that it works well, the published NAV Windows Clients (ex RTC) in remote app is very light and the band occupied is very low.
For example: it allows quickly to activate NAV in foreign branches without installing anything and without worrying too much about internet bandwidth etc. etc.

Points of Strenghts
– Don’t install anything on the client, just deploy the application icon or to give access to a portal (gateway remote app like in the picture)
– is also usable on PCs with XP window (…), I don’t buy new PC if I don’t need high performance
– The occupied bandwidth is really little, similar to other remote application tools)
(when the local NAV Client is slow, via remote app however can be fast…
– Compared to the standard terminal server is much less invasive, user uses only what has been published, not everything a remote desktop.
– I can also use it in VPN (if I do not want to publish on the internet)
– I can use all NAV versions starting at 4.0 SP1.

Points of Weakness
– if you are using Word Layout, Word must be installed on the remote server or you cannot print (ex: errors with Post & Print function)
– Sometimes the NAV session is not closed on the server (even if it is closed on the client)
– Copy and Paste operations are more harder bur possible.
– If you don’t want to use a VPN , you need to use applications published on the Internet Gateway (… is the same situation with Azure and endpoints)
– Today is considered “old technology”, not web based and oriented.

REMOTE APPS GATEWAY

LOGIN PAGE

 

NAV Windows Client on Remote App (remote execution).. you are Welcome !

 

Some Links for you

Below are some useful links to understand the operational mode of remote app and how to setupconfigure a new remote app environment.

Overview of Remote App

https://technet.microsoft.com/en-us/library/cc755055(v=ws.11).aspx

Remote Desktop Services (RDS) Quick Start Deployment for RemoteApp, Windows Server 2012 Style

https://blogs.technet.microsoft.com/yungchou/2013/02/07/remote-desktop-services-rds-quick-start-deployment-for-remoteapp-windows-server-2012-style/

Publishing RemoteApps in Windows Server 2012 (GREAT !)

https://social.technet.microsoft.com/wiki/contents/articles/10817.publishing-remoteapps-in-windows-server-2012.aspx

NAV 2016 via Remote App

https://community.dynamics.com/nav/f/34/t/185099

Dynamics NAV & TS RemoteApp

https://community.dynamics.com/nav/f/34/t/25259

Publish Dynamics AX client as RemoteApp on Remote Desktop Services

https://community.dynamics.com/ax/b/axfortechies/archive/2012/10/25/publish-dynamics-ax-client-as-remoteapp-on-remote-desktop-services

Introducing Terminal Services Easy Print: Part 1

https://blogs.technet.microsoft.com/enterprisemobility/2007/04/26/introducing-terminal-services-easy-print-part-1/

Have a nice new Year 2017 !

Merry Christmas and happy New Year !


merry 2016.png

#dyndev365  #msdynnav  #Merry Christmas #TomorrowNAV

“Dear readers, followers and friends,

wish you and your family a Merry Christmas and Happy New Year 2017!”

Roberto Stefanetti

 

…and always “long life to Dynamics NAV !”

“How to” display picture from file in Item Picture Page


Below a short procedure to visualize a linked picture from a picture file (example file with “.GIF” extension) into the “Item Picture Page”.

The System load the image file in a BLOB field and after displays it on the picture page; at the close of the page the image is deleted from the item table in order to lighten the System; same procedure can be used in reports and can also be used in old versions of NAV… in this case NAV 2013.

imag1imgage2

image3.png

NAV C/AL Code

On Image Button of Item Card
// CHECK DATA IN RECORDLINK TABLE
RecordLink.RESET;
RecordLink.SETCURRENTKEY(Company,”Refer to”);
RecordLink.SETRANGE(Company,COMPANYNAME);
RecordLink.SETRANGE(“Refer to”,”No.”);
IF NOT RecordLink.FINDSET THEN EXIT;
FileToUpload := RecordLink.URL4;   //Custom field with link for image
IF FileToUpload = ” THEN EXIT;
//IMPORT IMAGE FROM FILE USING FILE MANAGEMENT
FileManagement.BLOBImportFromServerFile(recTempBlob,FileManagement.UploadFileSilent(FileToUpload));
ItemPicture.RESET;
ItemPicture.SETRANGE(“No.”,”No.”);
IF ItemPicture.FINDSET THEN BEGIN
ItemPicture.Picture := recTempBlob.Blob;
ItemPicture.MODIFY;
ItemPicture.RESET;
ItemPicture.SETRANGE(“No.”,”No.”);

// OPEN PAGE 346 Item Picture > Visualize Item Image
PagePicture.SETTABLEVIEW(ItemPicture);
PagePicture.RUN;
END;

//Image Cleaning
Page 346 Item Picture
OnClosePage()
itemPicture.RESET;
itemPicture.SETRANGE(“No.”,”No.”);
IF itemPicture.FINDSET THEN BEGIN
IF itemPicture.Picture.HASVALUE THEN BEGIN
itemPicture.CALCFIELDS(Picture);
CLEAR(itemPicture.Picture);
itemPicture.MODIFY;
END;
END;

Announcing the Preview of Development Tools for Dynamics NAV – Nice Christmas!


“Tools are available in preview from today”!  AWESOME !!

  • The in-client designer
  • Visual Studio Code

Start from here:  http://aka.ms/navdeveloperpreview

In-Client Designer

InClient - Adding-a-field.gif

Visual Studio Code

vscode.png

New Development Environment “What’s New” here:

Developing Extensions Using the New Development Environment

https://msdn.microsoft.com/en-us/dynamics-nav/newdev-dev-overview

In-Client Designer

https://msdn.microsoft.com/en-us/dynamics-nav/newdev-inclient-designer

Differences in the Dynamics NAV Development Environments

https://msdn.microsoft.com/en-us/dynamics-nav/newdev-differences

Keyboard Shortcuts for the New Development Environment

https://msdn.microsoft.com/en-us/dynamics-nav/newdev-keyboard-shortcuts

Developer Reference

https://msdn.microsoft.com/en-us/dynamics-nav/newdev-reference-overview

 

Full Documentation here:

Tools overview

Getting Started guide

Object overview and AL language Changes

 

GitHub Bug Branch https://github.com/microsoft/al/issues

Source: Announcing the Preview of Development Tools for Dynamics NAV – Dynamics NAV Team Blog

Be Social !    #dyndev365 #msdynnav #code

“ALL About” How To Boost Dynamics NAV Server


Hi Guys,
another post of “ALL About” Series, in this case, some people have asked me about NAV configuration and how to configure NAV Server for better performance (Boosting
NAV..);  also in Microsoft Forum there are several posts about this topic, i searched and collected a variety of useful information for a correct NAV Server configuration.
Documents and Posts
“Great White Paper” about typical questions around the number of users or tenants, hardware requirements, scaling, and upgrading
-> “…How to have a great configuration and “How-to Boost NAV”!!
“This white paper provides detailed insight into the concepts and principles that support performance testing in Microsoft Dynamics NAV”.
By outlining some sample goals from the start, it explains how you can use load testing to optimize your application and hardware to meet the customer and user requirements – addressing typical questions around the number of users or tenants, hardware requirements, scaling, and upgrading”
Below some useful information about NAV Server Configuration.
NAV Server Configuration Best Practices (from Whitepaper)
1) Number of Microsoft Dynamics NAV Service Tiers
When a client connects to Microsoft Dynamics NAV Server, the load balancer will select a server and keep the connection open throughout the lifetime of the client.
This means that setting up more servers behind a load balancer will increase the capacity of the cluster of Microsoft Dynamics NAV Service tiers.
2) Server Memory
Each Microsoft Dynamics NAV Service tier needs 500Mb of memory to run.
On top of that, the Microsoft Dynamics NAV Service tier needs memory for each active session, even if they are idle.
The more pages the user have opened, the more memory gets allocated, but a good starting point for doing sizing calculations is around 10Mb per active session.
Idle sessions are not terminated if they are running the Windows client.
Server CPU (cores and speed) Faster CPU will get things done faster, and more cores can run more things in parallel.
Idle sessions on the Microsoft Dynamics NAV Service tier don’t use any CPU power, except for generic housekeeping, which shouldn’t be counted.
3) Server CPU (cores and speed)
Faster CPU will get things done faster, and more cores can run more things in parallel.
Idle sessions on the Microsoft Dynamics NAV Service tier don’t use any CPU power, except for generic housekeeping, which shouldn’t be counted.
Active sessions will use CPU power depending on what they do, but it is hard to generalize how much.
For example, CPU power is used whenever the user is performing a task that requires the Microsoft Dynamics NAV Service tier to run some business logic or perform some UI logic or setup server pages.
If the Microsoft Dynamics NAV Service tier does a lot of IO (SQL calls or client callbacks), then the CPU will be waiting for response and thus be loaded less.
4) Data Cache Size
This is a Microsoft Dynamics NAV Server setting, which located in CustomSettings.config file. Sets the data cache size. This is an abstract value with contextual meaning on the type of the item being cached.
<add key=”DataCacheSize” value=”9″ />
The number you specify in DataCacheSize setting determines how much memory is used for caching data.
The actual amount of memory (in MB) allocated is 2n, where n is the value of the DataCacheSize setting:
Value Memor y 9 (default) 512Mb 10 1Gb 11 2Gb 12 4Gb 13 8Gb 14 16Gb 15 32Gb …
When running a single tenant system the default value of 9 is probably good.
When running a multi-tenant system, the data cache is shared between all tenants.
Set to 0 to disable cache.
boost2
5) Metadata Provider Cache Size
This is a Microsoft Dynamics NAV Server setting, which located in CustomSettings.config file.
Sets the Metadata Provider cache size (in number in objects cached).
Set to 0 to disable cache.
<add key=”MetadataProviderCacheSize” value=”150″ />
You can monitor the number of objects in the metadata cache by monitoring the following performance counter on the Microsoft Dynamics NAV Service tier.
There is really NO REASON not to set this to a high value (like 10000) if you are not pressed on memory on the Microsoft Dynamics NAV Server.
6) Max Concurrent Calls
This is a Microsoft Dynamics NAV Server setting, which is located in CustomSettings.config file.
Maximum number of concurrent client calls that can be active on the Microsoft Dynamics NAV Server.
To disable this setting set the value to “MaxValue”.
<add key=”MaxConcurrentCalls” value=”40″ />
The number specified here determines how many concurrent calls the Service Tier is able to handle. The more cores in your server, the higher this value can be.
NAVPERF (On Github)
GitHub organization for performance testing Microsoft Dynamics NAV
GitHub You will find a couple of projects on GitHub, which contains some sample code on how to do performance tests.
The GitHub organization is used to store the sample repositories and is available here:
boost1
boost3
nav-2017-sanmple

Microsoft Dynamics NAV 2017 Load Test sample as references from the Load Test WhitePaper

Enables you to create scenario tests for Microsoft Dynamics NAV.

The solution consists of:

Microsoft.Dynamics.Nav.LoadTest : A sample test for NAV Order Processor Scenarios Microsoft.Dynamics.Nav.TestUtilities : Test utilities to help build test scenarios Microsoft.Dynamics.Nav.UserSession : Client Library for the NAV Client Services Web Service

On the Microsoft Dynamics NAV 2017 DVD, you will find a folder called Test Assemblies. This folder contains one DLL, which is needed for running Load Tests: Microsoft.Dynamics.Framework.UI.Client.dll  The DLL is also included in this project.

Others nice links
Optimizing SQL Server Performance with Microsoft Dynamics NAV
https://msdn.microsoft.com/en-us/dynamics-nav/optimizing-sql-server-performance-with-microsoft-dynamics-nav
Videos
How Do I: Run NAV Performance Tests Using Visual Studio in Microsoft Dynamics NAV
https://www.youtube.com/watch?v=IG-y8DsXqaQ
Some my old posts here:
Monitoring Microsoft Dynamics NAV 2015 Server Using “Performance Counters”
https://robertostefanettinavblog.wordpress.com/2015/07/06/monitoring-microsoft-dynamics-nav-2015-server-using-performance-counters/

Cumulative Update 01 for Microsoft Dynamics NAV 2017 has been released


Cumulative Update 01 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2017.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update.

For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

  •   AU – Australia
  •   AT – Austria
  •   BE – Belgium
  •   CH – Switzerland
  •   CZ – Czech Republic
  •   DE – Germany
  •   DK – Denmark
  •   ES – Spain
  •   FI  – Finland
  •   FR – France
  •   IS – Iceland
  •   IT – Italy
  •   NA – North America
  •   NL – Netherlands
  •   NO – Norway
  •   NZ – New Zealand
  •   RU – Russia
  •   SE – Sweden
  •   UK – United Kingdom

Where to find Cumulative Update 01

You can download the cumulative update from KB 3209071 – Cumulative Update 01 for Microsoft Dynamics NAV 2017 (Build 14199).

Or you can download the cumulative update from the Microsoft Download Center.

SourceCumulative Update 01 for Microsoft Dynamics NAV 2017 has been released