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 ...

Navision Application Server

MS Dynamics NAV – Setting up an Application Server (NAS) In MS dynamics NAV, there are lots of discussions about NAS and its behavior & functionality and also about installing NAV correctly. Lets’ first see what is meant by NAS? What is NAS? Navision Application Server is a middle-tier server that runs as a service. It is designed to provide access from external clients to the MS Dynamics NAV Navision database. The database could be either MS SQL Server or Native Navision Database Server. Whatever database platform it runs, NAS acts as a bridge to the NAV database when it is integrated other external applications. In this case, external applications mean any other applications apart from the typical Navision client. The key role of the application server is in the e-business solutions. For example, Navision Application Server provides connectivity between a Web client (such as Navision Employee Portal) and Navision Database Server; between an external application (such as Microsoft...