How to: Programmatically Create a Navision Menu Item?

bramante
Member Posts: 11
My ultimate goal is for a Navision user to be able to run an executable 'A.exe' that will, amongst many other things, create a Navision menu item under the 'File' menu that will launch another executable 'B.exe'.
How can I programmatically create such a Navision menu item? My programming language of choice is C#. And I must develope this using VisualStudio.NET.
Please be specific in your reply as I am a beginner with Navision.
Thank you in advance for your support.
How can I programmatically create such a Navision menu item? My programming language of choice is C#. And I must develope this using VisualStudio.NET.
Please be specific in your reply as I am a beginner with Navision.
Thank you in advance for your support.
0
Comments
-
Hi,
I m not getting exactly what u r trying to say, by the way if you want to call navision from some where outside you can use SHELL commad, with most of the languages it's available.
Let me know this in detail.
Roshan0 -
-
How and in what way do you suggest I use the 'SHELL' command.
Please be specific in your reply as I am a beginner with Navision.0 -
Open the Navision help and search for SHELL.
From the help:
Example
Here is an example of how you can use the SHELL function:
SHELL('c:\joe\myprog.exe', 'arg1', 'arg2');
This statement executes a program named myprog.exe in the directory c:\joe. There are two arguments, arg1 and arg2, which are passed to the function. To call the DOS command DIR, you would use this code:
CommandProcessor := 'c:\command.com';
Argument := '/c';
DOSCommand := 'dir';
SHELL(CommandProcessor, Argument, DOSCommand);
So that answers how to run an external application, but you are not going to be able to use an external program to create a new menuitem.
-a0 -
Thank you. What programming language is that and what development environment would I use to develope in using your sample code? How would I open and/or acquire this development environment?
When you say: "you are not going to be able to use an external program to create a new menuitem", does that mean that it is physically impossible for a Navision user to click on an executable that I have created and have that executable create a menu item in that users installed Navision application?0 -
are you trting to create an ADD-ON product?0
-
You use Navision code to code in Navision, and yes I mean you are not going to be able to create code in an external product to create 'objects' in Navision.
Navision is not object oriented.
-a0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions