Connecting to remote mysql database

Duhast
Member Posts: 42
I want to do this :
"Sales Line"."No." trigger onValidate
I want to search that value at remote mysql database :
-Finding that value mean an error will occur (It will be not possible to insert a value that exists at remote database).
-Don't find, nothing happens.
Can I do it?
If it's not possible, how can I do something similar?
I thougth about a simple jsp page. I can send "No." as a parameter and execute a query using jsp. I can open an explorer page, but I cannot stop user to introducing that value.
Thanks to all
"Sales Line"."No." trigger onValidate
I want to search that value at remote mysql database :
-Finding that value mean an error will occur (It will be not possible to insert a value that exists at remote database).
-Don't find, nothing happens.
Can I do it?
If it's not possible, how can I do something similar?
I thougth about a simple jsp page. I can send "No." as a parameter and execute a query using jsp. I can open an explorer page, but I cannot stop user to introducing that value.

Thanks to all
0
Comments
-
If you are using MS SQL option for NAV, what about Linked server through ODBC to the MySQL. Than may be you can create some view and add it into NAV as LinkedObject. But I didn't test it and I do not know if it is possible (just brainstorming).0
-
Or maybe you could do an AJAX style XML HTTP request using automation 'Microsoft XML, v6.0'.XMLHTTP...
CREATE(xmlHTTP); Request := 'http://domain/search.asp?itemno=10000'; xmlHTTP.open('GET',Request,TRUE); xmlHTTP.send('');
Grab the response from your page:IF xmlHTTP.readyState = 4 THEN Response := xmlHTTP.responseText // do something with response...
Parse response as required and use to perform your logic0 -
What about creating a new table in Navision, and updating that with your remote database on a regular basis. Is you Mysql constantly changing, or is it relatively static, there are lot of examples of updating Navision tables by checking for files in a directory. Have your mysql create the file, when there is a change, and have Navision check that directory with a timer to load updates to your new navision table.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