Tuesday, 24 June 2014

Get in the NAV Development Game!

Preparation for your NAV development career is like setting the plays for the championship, and choosing your starting lineup.

The three-pointer

Why three? Because we NEVER ever develop in production!  (If you do that now, take a chair. You’ve fouled out!)  NAV is a very integrated system, and all changes need to be fully tested before they are implemented.  If you put your changes directly into production, you have no way of testing.  Removing your changes can be costly and time consuming, at the very least.  Therefore, you will need a test database that mirrors your production environment’s data and objects.  This database will allow users to test your code before you place it into production.  And if something goes wrong and your code adversely affects your test database, you’re still in the game!  You just build a new test database.

The third database is your practice court.  This is the database where you do the development and your own testing.  Let’s face it.  None of us are perfect.  There are things that we don’t anticipate in development tasks and things we overlook as we code.  Why air your dirty laundry to your users by putting it in the test database before you get a shot at cleaning up your code?  A development database allows you to complete your task and test it before you have to let a user have a crack at it.  It also allows you to set up test scripts (a series of situations that you find possible in the production environment) that can be reviewed in the test phase to see if the user can identify missing test scenarios.

All three databases can reside on the same SQL server, but you will want to do a little housecleaning after you’ve created the databases. If your database has sensitive data, such as credit card numbers, social security numbers, personal information, etc…, you will want to remove this information or assure that it’s not accessible in your testing.  At the very least, lock down permissions on the database via NAV security.

If your database has external links, such as the ability to send emails or process credit cards, you will want to disable these functions, and possibly remove relevant data as well.  Sending your customer’s emails from your test documents or charging their credit cards from them will result in a personal foul.  Your best bet is to remove the data, and disable the processes.  This can usually be done through the application setup.

The uniform

Just like you can’t get on the court without a uniform, you can’t develop NAV without a developer license (which is just a set of granules in your current license).  But don’t let that keep you out of the game!  You can obtain these granules from your VAR, who can discuss their abilities with you, to help you determine which you need, and give you the cost for obtaining them.  Regardless of which granules you obtain, you are allowed to only change the objects within your licensed applications.

You’d be surprised at how easy it is to add a field to a form or page, or add a piece of data to a report.  Even if you stop at this point, you’ll not only gain the ability to do these things, but learn more about how NAV is designed, and what developing in NAV is like.  If you’re not sure if you really want to develop in NAV, try this first.  You can always obtain a higher privileged license later on.

A house divided


Likewise, NAV has two flavors as well with the Classic Client and the Role Tailored Client (RTC).  Knowing which you are using is imperative to creating the right development environment.

The Classic Client environment requires only the NAV application with the Classic Client and the SQL database.  All code, regardless of which flavor you have, is written within the Classic Client.  This is the “default” environment for NAV.

If you’re developing in an RTC environment, you’ll also need an install of Visual Studio 2008 for development of RTC reports, as well as a three-tier environment for your NAV install.  Talk to your VAR if you’re unsure which of these you have, and they can assist you in creating a strong development environment.

Talk to the coach

Even if you have all the tools for development, the environment is created, your license is installed, and you’re already passing the ball and going for the hoop, you need to talk to your VAR.  If you have ongoing development with your VAR’s developers, the last thing you want to do is modify your objects without checking with them first.

NAV’s object set is very integrated.  A change to a single object could result in necessary changes to other objects.  Likewise, your VAR’s developers may have copies of your same objects involved in other development endeavors.  The last thing you want to pay them for is reworking their code to include your modifications.

Have a quick conversation with your VAR and discuss how you will keep your code and their code synchronized.Work with in-house developers and have developed a version control system whereby we incorporate our client’s code into our code and prevent rework.

Get in the game!

You will have obstacles and you will have days when you just feel defeated.  But don’t walk away. Team up with the NAV community.  We are here for you when those bad days come.  Just as any profession, we grow strongest when we grow together.

Regards,
Sathish

Friday, 20 June 2014

NAV 2013 R2 - Introduction to PowerShell.

Hi All,

With Release of NAV 2013 R2 Microsoft have introduced one more component of NAV Administrators.

Yes that is Microsoft Dynamics NAV 2013 R2 Administration Shell.

With Release of NAV 2013 R2 one more pr-requisite before installing Navision is Powershell which comes up with a windows Update.

Powershell can used to access all Cmdlets available for windows. we can also use same for running Cmdlets for NAV 2013.

What is Cmdlets?

A cmdlet is a lightweight command that is used in the Windows PowerShell environment. The Windows PowerShell runtime invokes these cmdlets within the context of automation scripts that are provided at the command line. The Windows PowerShell runtime also invokes them programmatically through Windows PowerShell APIs.

What is Microsoft Dynamics NAV Windows PowerShell Cmdlets?

Windows PowerShell cmdlets for Server Administration are available with Microsoft Dynamics NAV 2013 R2. The cmdlets are implemented in Windows PowerShell 3.0. Windows PowerShell 3.0 is included with Windows Server 2012 and Windows 8. For other versions of Windows supported for Microsoft Dynamics NAV 2013 R2, you can install it as part of the Windows Management Framework 3.0 on the Microsoft Download Center.

To start a Windows PowerShell session that includes the Server Administration cmdlets, on the Start menu, choose All Programs, and then choose Microsoft Dynamics NAV 2013 R2 Administration Shell. This opens a Windows PowerShell prompt.

To see the cmdlets that are available for administering Microsoft Dynamics NAV, type the following at the Windows PowerShell prompt.

Get-Command *NAVServer*



For details of Cmdlets for Navision use the link.

How to Use PowerShell?

In Start Menu search for Windows PowerShell ISE and Run it as administrtor.



Now for using NAV Commands you need to import the modules in Powershell, that can be done by execution below command.
-------------------------------------------------------------------------------------
#Prepare PowerShell
Import-Module 'C:\Program Files\Microsoft Dynamics NAV\71\Service\NavAdminTool.ps1'
-------------------------------------------------------------------------------------

Where C:\Program Files\Microsoft Dynamics NAV\71\Service\NavAdminTool.ps1 is the default path of Navision cmdlets.

Once imported, it will behave similar to Microsoft Dynamics Administration tool.



We will be using PowerShell in future post, so i would suggest pin the Powershell ISE Shortcut to the TaskBar.

Regards,
Sathish

Thursday, 19 June 2014

Interactive Sorting in Dynamics NAV 2013 Reports

Visual studio report designer enables reports to be interactive with its end users. We can let the end users sort data on the report and print it as per their choice.

In this post, I would like to explain how to add interactive sorting capability to your reports in Dynamics NAV.

I created a simple and plain customer list report with dataset as shown below in the Dynamics NAV report designer:

Capture1


In the layout designer, I used a table control to display the data in the body section and I used a text box control to show the title of the report in the header:

Capture2

Now, if we save and run this report, we would get a preview as shown in the following image:

Capture3

Here, the report is sorted on Customer No. by default (as it is the primary key of Customer table). Of course we can change the key in customer DataItem or use Tablix properties to sort on different fields/columns.

However, it can be made more user friendly by letting the end users choose, how the report data is sorted.

1. Open the report layout designer, right click on Name column and open Text box properties.

2. Click on Interactive sorting on the left side and enable interactive sorting. You can specify weather you want to sort on detail rows or groups. You also need to specify the Sort by column.

Follow the above 2 steps on other columns to enable interactive sorting on multiple columns.

Capture4

After enabling interactive sorting, the report preview looks as shown below:

Capture5


Regards,
Sathish

Friday, 13 June 2014

Cumulative Update 15 for Microsoft Dynamics NAV 2013 has been released


Cumulative update 15 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013. 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 15

You can download cumulative update 15 from KB 2964546 – Cumulative Update 15 for Microsoft Dynamics NAV 2013 (Build 36919).

For a full list of all hotfixes included in the cumulative update, see the following CustomerSource and PartnerSource pages:

CustomerSource:
PartnerSource:

More Information

For more information about cumulative updates for Microsoft Dynamics NAV 2013, see Announcement of update rollups for Microsoft Dynamics NAV 2013.


Regards,
Sathish


Cumulative Update 8 for Microsoft Dynamics NAV 2013 R2 has been released


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

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
    • RU – Russia
    • SE - Sweden
    • UK - United Kingdom
Cumulative update 8 also introduces new functionality for exporting and importing companies and other data. You can export a company from a Microsoft Dynamics NAV database and import it into another database, and you can export and import other types of data such as global data, application data, and application objects.

In earlier versions of Microsoft Dynamics NAV, you exported and imported this type of data as part of backing up and restoring databases. In Microsoft Dynamics NAV 2013 R2 CU8, you can do this by using the Export-NAVData and Import-NAVData Windows PowerShell cmdlets. You can also import and export data in the Microsoft Dynamics NAV Windows client.

For more information, see the following documents on the W1 version of the Microsoft Dynamics NAV 2013 R2 CU8 download media:
  • MicrosoftDynamicsNAV2013R2CU8_ExportImportDataUsingNavDataFiles.pptx
  • MicrosoftDynamicsNAV2013R2CU8_ImportExportData.pdf
Please note that there is very limited support for exporting and importing data in the Microsoft Dynamics NAV Web client. Use the Microsoft Dynamics NAV Windows client or the Windows PowerShell cmdlets instead.

Where to find cumulative update 8

You can download cumulative update 8 from KB 2971746 – Cumulative Update 8 for Microsoft Dynamics NAV 2013 R2 (Build 36897).

For a full list of all hotfixes included in cumulative updates for Microsoft Dynamics NAV 2013 R2, see the following CustomerSource and PartnerSource pages: 

CustomerSource:
PartnerSource

More Information

For more information about cumulative updates for Microsoft Dynamics NAV 2013 R2, see Announcement of update rollups for Microsoft Dynamics NAV 2013 R2. 


Regards,
Sathish


Friday, 6 June 2014

Check mark in Microsoft Dynamics NAV Reports

Recently, one of the partners asked me if it is possible to display Boolean fields as check marks in NAV reports. I tried it out and I must say its pretty simple.

I created a new and simple report on Item table with the following dataset:

Untitled1


In the layout design, I used a table control to display the data in the body section and I used a text box control to show the title of the report in the header:

untitled2

Note: To learn how to use a table control see the video: How to: Build a simple list report in Microsoft Dynamics NAV 2013 

I saved the report and ran it. In the report preview, boolean field values were shown as True/False instead of check mark!

Untitled3

To show the Boolean field as Check mark, I went back to the layout designer and did the following changes:

1. Opened the text box properties for the Boolean field (CostIsAdjusted) and inserted an expression for the value field as shown below:
I changed “=Fields!CostIsAdjusted_Item.Value” to “=IIF(Fields!CostIsAdjusted_Item.Value,Chr(254),Chr(168))“

Untitled4

2. Changed the font to Wingdings for the Boolean field only:

Untitled5

After these 2 changes, I saved the report and ran it. The preview now displays check marks for Boolean field values:

Untitled6


Regards,
Sathish

Wednesday, 4 June 2014

Microsoft Dynamics NAV 2015 – Functionality Discontinuation Notice


​Commerce Gateway functionality will not be available on Microsoft Dynamics NAV 2015.

Commerce Gateway

Customers use Commerce Gateway for Microsoft Dynamics NAV to exchange trading documents electronically with business partners regardless of conversion requirements and data formats.
As a result of the magnitude of changes being made to the architecture of Microsoft Dynamics NAV 2015 combined with the enhanced functionalities now provided by Microsoft BizTalk, Microsoft has been decided to discontinue the development of Commerce Gateway.  So, the following two modules will not be available in Microsoft Dynamics NAV 2015:
  • Commerce Gateway (99008510)
  • Commerce Gateway Unlimited (99008520) 
This functionality discontinuation impacts all Microsoft Dynamics NAV 2015 licensing models:  Perpetual Licensing, Subscription Licensing, and Service Provider Licensing Agreement (SPLA).

We encourage new or existing customers who wish to purchase business integration capabilities for Microsoft Dynamics NAV 2015 to contact their partner to discuss  Certified for Microsoft Dynamics (CfMD) solutions that may be available through the Microsoft Dynamics Marketplace.

Existing Customer Impact

These two granules remain available for use on Microsoft Dynamics NAV 2013 (and prior versions).  These two granules also remain available for licensing by Microsoft Dynamics NAV 2009 R2 (or prior version) customers with an active enhancement plan. 
However, existing customers will not be able to use these granules when upgrading to Microsoft Dynamics NAV 2015.  The Protected List Price of these granules will be removed when Customers with an active enhancement plan upgrade from Microsoft Dynamics NAV 2009 R2 to Microsoft Dynamics NAV 2015 via the License Model Transition Upgrade path.  This discontinuation does not impact the Protected List Price of customers upgrading through any other path.

Regards,
Sathish