Skip to main content

How to run an External Application within Dynamics NAV

Perhaps you may have inquired the possibility of executing an external program within Dynamics NAV due to many reasons such as;

1. To run an external application like Windows Calendar or Skype within NAV
2. To run a Crystal Report using a Icon available in NAV

Whatever the reason, concept for making this a reality would be as follows;

Initially you may have to find out the directory path where the executable file of the external application is located. For example, let's assume that you are in need of calling the windows Calendar within Payment Journal Screen. You can search the calc.exe file where it is located. Mostly this is available in the windows System32 directory. Therefore the relevant directory path could be defined as 'C:\WINDOWS\system32\calc.exe'. In CAL, you could call the Calendar Control by giving the following command;

SHELL('C:\WINDOWS\system32\calc.exe');

This can be achieved by placing an additional command button in the Payment Journal Screen. In the 'OnPush' trigger, once you place the following CAL code you can display the Windows Calendar on top of the Payment Journal Screen.



For example, if you want to direct your browser to open a particular Web Site, for example www.microsoft.com you can do it by placing the following command;

HYPERLINK('http://www.microsoft.com');

Let's say if you want to open a PDF document you could do it by giving the following command in CAL;

HYPERLINK('D:\MyDocuments\80042A_00.pdf');

In the above case, D:\MyDocuments\ is the directory path where the relevant PDF file is located and the 80042A_00.pdf' is the PDF file name.

For instance, if you want to call an External Program using the Menu Structure, you will be able to do it by giving a reference to Code Unit in the relevant Menu Object; in the 'OnRun' trigger of the Code unit you can place you CAL commands to call the external application as explained above.

Comments

Popular posts from this blog

Upgrade from NAV 5 to NAV 2009 SP1 – A QUICK GUIDE

Regardless of the version from which you are trying to do the upgrade, the whole process can be divided into two main phases as Object Upgrade and the Data Upgrade. Let’s first look at the Object Upgrade. In Object Upgrade, you have to identify all the customizations done in the current live version of the customer database and implement the same in a new 2009 SP1 database. Please remember that there are no short-cuts for this process. This is entirely a manual process, but you can make use of the existing tools such as Developer Toolkit. Using the Developer Toolkit you can compare/merge the original version 5 db and the current customer database wherein you can identify the differences between the two databases and implement the modifications in a new 2009 SP1 fresh database. Once you complete this process, you are through with the phase no 1. Remember that this is the most time consuming phase in an upgrade project. If you make any mistakes then you have to suffer lot in the subseque...

Microsoft Announces the Availability of Management Reporter for Microsoft Dynamics ERP

Microsoft has now announced the general availability of Management Reporter for Microsoft Dynamics ERP. Management Reporter, formerly codenamed Management Reporter 2.0, will act as the replacement for Microsoft FRx, www.newscom.com/cgi-bin/prnh/20000822/MSFTLOGO Management Reporter extends the proven functionality of Microsoft FRx and enables people to quickly and easily create, generate, help secure and publish professional-looking financial statements, such as profit and loss statements, balance sheets, and cash flow reports, and will also allow them to take advantage of the following: • Custom reports without IT assistance. These reports reduce the burden on the IT department by empowering the finance team to create its own financial statements. • Deep cross-functional analysis. Management Reporter provides easy and accurate financial reporting, intercompany reconciliations and eliminations. • Reduced training time and increased productivity. A familiar user interface and reporting ...

Role Center Configuration

What is Role Center Role Centers are one of the most attractive features available in the latest of Microsoft Dynamics NAV 2009. Basically, a Role Center is designed to assist users by identifying the specific roles played in their day to day life. It improves the user friendliness of the ERP system by providing them an overview of the tasks and information relevant to their job and helps to plan their daily work. A role center is a Dash Board Screen for a specific segment of users where all the frequently used options of the ERP could be organized and make available in one single screen. These selected options may contain different data entry screens, batch jobs, reports, analysis screens, data integration objects such as Data ports, XML Ports and even URLs of frequently visiting web sites & email inbox / outbox as well. Microsoft Dynamics NAV 2009 delivers with 21 default Role Centers and they could be further optimized as per the specific needs of the customers. These Role Cente...