Tuesday 24 January 2017

How to Modify existing field and action properties on a page using Visual Studio Code


I would like to show How to Modify existing field and action properties on a page using simple assignment.

My goal is to make below changes in standard Purchase Order page.

1.     I would like to change existing field name from “Buy-from Vendor No.” to “Vendor No.”

2.     And to make sure that Post action is visible only from Windows Client and not from Web Client.

Purchase Order page looks like below before modifications.

I have created PurchOrderPageExtension.al object as shown in below screenshot.

You can refer my previous blogs to know how to create al objects in detailed.



1st part of the code shows how to modify existing field “Buy-from Vendor No.”

Here I have modified property CaptionML of “Buy-from Vendor No.” field.

2nd part of the code shows how to modify existing action Post properties.

Here I have modified properties CaptionML and Visible.


You can check below part for declaration of global variables and OnOpenPage triggers.

[InDataSet]

PostVisible : Boolean;

Above declaration is equal to Setting IncludeInDataset property of global variables to Yes in previous development.

Now Build Package (Ctrl+Shift+B) and Publish (F5).

Now the Purchase Order page looks like


We can notice that field “Buy-from Vendor No.” changed to “Vendor No.”

Post is changed to “Post visible from Windows Client”.

And Post button is not visible from Web Client.
Make sure that we can modify only few properties as described here
https://msdn.microsoft.com/en-us/dynamics-nav/extension-packages-capability-support-matrix

Friday 20 January 2017

Adding Logo, privacyStatement and help url's to Extensions using Visual Studio Code


If we would like to add Logo, privacyStatement, help, url and End user License agreement (EULA) links to our extension then we need to fill below settings in app.json file
Place the logo in your extension folder and add it to logo settings.

I have added sample links in all privacyStatement, help, url and End user License agreement (EULA) setup.

You can add proper links as per your scenario.

Now Build (Ctrl+Shift+B) the package and Publish (F5).

Go to Extensions page and notice logo for our extension.

Open extension card and click on any privacyStatement, help, url and End user License agreement (EULA) links which opens links we provided in above setup.

We can also enter description of our extension in above setup which is shown in Extension Card.

If we don’t set these setup’s in app.json then no links will be opened when we click in extension card and default image is added to extension like

Monday 16 January 2017

Cumulative Update 02 for Microsoft Dynamics NAV 2017 has been released (Build 14767)


Cumulative Update 02 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.

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 02

You can download the cumulative update from KB 3216190 – Cumulative Update 02 for Microsoft Dynamics NAV 2017 (Build 14767). Or you can download the cumulative update from the Microsoft Download Center.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

1.    Test the cumulative update in a non-production environment.

2.    Make a backup of the system or computer where the cumulative update is to be installed.

3.    Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.


Cumulative Update 15 for Microsoft Dynamics NAV 2016 has been released (Build 47671)


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

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.

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 15
You can download the cumulative update from KB 3216191 – Cumulative Update 15 for Microsoft Dynamics NAV 2016 (Build 47671).


Warning

Before you install a cumulative update in a production environment, take the following precautions:

1.    Test the cumulative update in a non-production environment.

2.    Make a backup of the system or computer where the cumulative update is to be installed.

3.    Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.


Cumulative Update 46 for Microsoft Dynamics NAV 2013 has been released (Build 47667)


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

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.

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
  • DE – Germany
  • DK – Denmark
  • ES – Spain
  • FI – Finland
  • FR – France
  • IS – Iceland
  • IT – Italy
  • NA – North America
  • NL – Netherlands
  • NO – Norway
  • NZ – New Zealand
  • SE – Sweden
  • UK – United Kingdom

Where to find Cumulative Update 46

You can download the cumulative update from KB 3216196  – Cumulative Update 46 for Microsoft Dynamics NAV 2013 (Build 47667).

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

Warning

Before you install a cumulative update in a production environment, take the following precautions:

1.    Test the cumulative update in a non-production environment.

2.    Make a backup of the system or computer where the cumulative update is to be installed.

3.    Note: Implementing this cumulative update can require a database upgrade.

4.    Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.

5.    Note: This download does unfortunately not include content for the additional folders extracted from the DVD. You will have to get the content from the DVD. This issue will be corrected for next month.


Cumulative Update 27 for Microsoft Dynamics NAV 2015 has been released (Build 47665)


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

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.

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

Note: You must convert the database if you are upgrading to this cumulative update from a cumulative update earlier than Cumulative Update 9 (build 41779). For more information, see Converting a Database in Help for Microsoft Dynamics NAV.

Where to find Cumulative Update 27

You can download the cumulative update from KB 3209073  – Cumulative Update 27 for Microsoft Dynamics NAV 2015 (Build 47665).

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

Warning

Before you install a cumulative update in a production environment, take the following precautions:

1.    Test the cumulative update in a non-production environment.

2.    Make a backup of the system or computer where the cumulative update is to be installed.

3.    Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.


Cumulative Update 39 for Microsoft Dynamics NAV 2013 R2 has been released (Build 47662)


Cumulative Update 39 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013 R2.

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.

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 39

You can download the cumulative update from KB 3216194  – Cumulative Update 39 for Microsoft Dynamics NAV 2013 R2 (Build 47662).

Or you can find the cumulative update at the Microsoft Download Center. Before you install a cumulative update in a production environment, take the following precautions:

1.    Test the cumulative update in a non-production environment.

2.    Make a backup of the system or computer where the cumulative update is to be installed.


Warning
  • Note: Implementing this cumulative update can require a database upgrade.
  • Note: We are currently transitioning to a new Knowledge Base system to provide you a better experience. During the transition period, access to Knowledge Base articles from within CustomerSource and PartnerSource will be unavailable. During this transition period, Knowledge Base articles can be found by utilizing the search functionality located on the Microsoft Support Website.
  • Note: This download does unfortunately not include content for the additional folders extracted from the DVD. You will have to get the content from the DVD. This issue will be corrected for next month.


NAV Development Tools Preview – January Update

Microsoft announced an update to the developer tools preview.

The update will be applied automatically to the Azure Gallery and any new images taken will automatically include the updated version. Code written from the December update is expected to work, however, please note that between versions code needs to be moved to the new VM and extensions must be recompiled and redeployed which will result in a data loss. Use http://aka.ms/navdeveloperpreview to create a version of the new image.

The following is included in the update

– Fixed various bugs reported by the community in the in-client designer.

– We can now reference Report and XMLPort objects from the base application. This gives us the ability to use these objects in the RunObject property, as well as, declare variables of the types Report and XMLPort, and call AL functions on them.

– Improved IntelliSense for Pages and Tables. IntelliSense will offer keywords in Pages and Tables. The supported keywords will be offered in the correct context and are intended to help build the object correctly.



– IntelliSense for attributes. The list of available attributes will be displayed after typing ‘[‘. Each attribute will also include signature help showing the number and types of expected parameters. Also, IntelliSense for the EventSubscriber attribute offers lookup for the event name and the field/action name parameters which helps discover the available event publishers.

– Fixed miscellaneous bugs reported to Microsoft. Issues submitted to the GitHub project issue list that have been fixed have been marked as included in the January update.

Microsoft would like to thank all those who registered comments or issues and at the same time, remind you that the best way to give feedback is through the https://github.com/microsoft/al/issues project.