Navision 3.56 and PHP communication

tom2377
Member Posts: 2
Hi there,
I have this situation:
Navision 3.56 database in two files with no extension. Now I need the data to be converted into preferably mySQL database to use it in a PHP web application.
Also there should be regular updates of the mySQL db with new data from Navision db.
Im really confused about how to access the Navision and query it. I understand from the documentation that there is some Application Language that can be used to do that but surely there are some ways (tools) to do it right?
I would very much appreciate any ideas on how to carry this out.
I have this situation:
Navision 3.56 database in two files with no extension. Now I need the data to be converted into preferably mySQL database to use it in a PHP web application.
Also there should be regular updates of the mySQL db with new data from Navision db.
Im really confused about how to access the Navision and query it. I understand from the documentation that there is some Application Language that can be used to do that but surely there are some ways (tools) to do it right?
I would very much appreciate any ideas on how to carry this out.
0
Comments
-
Hi Tom
You can write reports in Navision which generates SQL-commands for mySQL.
Below is a very simple example of an output from a Navision report
Lines 1-6 is the output from the header section of the repoprt
Here a database with 3 fields is created
Lines 7-11 (from 1. record i Navision) enters data into the first record of the mySQL database
Lines 12-16 (from 2. record i Navision) enters data into the second record of the mySQL database
.
etc.
.
.
I hope you can se how easy it is to create reports for any data you need from Navision
Example:
=======
CREATE TABLE `PROD` (
`prodno` varchar(30) NOT NULL default '',
`price` mediumint(9) default '0',
`desc` varchar(60) default NULL,
PRIMARY KEY (`prodno`)
) TYPE=MyISAM;
INSERT INTO `PROD` VALUES (
'ADQ4S14PCI',
8945,
'A/D converter 4 kanal 2 MHz 14 bit + I/O'
);
INSERT INTO `PROD` VALUES (
'ADQ4S14PCI-E',
9229,
'A/D converter 4 kanal, 3 MHz,14 bit,I/O, PCI express'
);0 -
tom2377 wrote:Hi there,
I have this situation:
Navision 3.56 database in two files with no extension. Now I need the data to be converted into preferably mySQL database to use it in a PHP web application.
Also there should be regular updates of the mySQL db with new data from Navision db.
Im really confused about how to access the Navision and query it. I understand from the documentation that there is some Application Language that can be used to do that but surely there are some ways (tools) to do it right?
I would very much appreciate any ideas on how to carry this out.
Hi Tom,
Firstly is this a one off? I.e. do you just need to get the data out for a one off scenario to use in your web app, or do you need to get the data updated on a regular basis.
If its a one off, then you can just import the backup into a NAV (windows) database on SQL, and then just use SQL to extract the data.
If you need this regularly, then to read the data you could use C/FRONT or C/ODBC C font basically gives you a C++ library of functions that allow you to connect direct to the database. The other option is ODBC. BUT to use either of these you need a license, and its no longer possible to purchase licenses for 3.56.
In that case if you don't have either a ODBC or C/FRONT license you will have to export the data, probably using an Export.
Anyway post some more information about what you want and lets see if we can help you.
PS I originally distributed the DOS version of Navision in Czechoslovakia, so I may have to dig up some old history, but I am sure I can get the information you need.David Singleton0 -
tom2377 wrote:Also there should be regular updates of the mySQL db with new data from Navision db.
Sorry, some how I missed that, so moving the data to a windows SQL database is not really an option.David Singleton0 -
Hi there.
A danish company named "Swwwing" made a "navision.dll" for PHP back around 1994 or 1995. When including this into your PHP code you gained access to Navision commands directly in your PHP. Naturally you had to access the Navision server through a login and the login had to exist in the database with a minimum of read access to the tables but then you could use several Navision functions externally in you PHP programming. This includes (naturally) reading data from Navision and inserting them into i.e. MySQL.
I don't have the "navision.dll" available, but try searching for Swwwing or "navision.dll" for PHP ... you might get lucky.0
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