Pass -settings switch to DynamicsNAV:// protocol handler?

MarHan
Member Posts: 34
Hi there,
I'm using the following way to open my client:
"C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config"
Is there any way to achieve the same using the "DynamicsNAV://" protocol handler url? Something like this:
"DynamicsNav://xxx:10046/yyy//" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config" (<- that doesn't work - it ignores the settings switch)
(Reason: I need to put that url into the "Windows Client Base URL"-field of the server instance to force use a certain config file with that instance)
Thanks in advance!
Markus
I'm using the following way to open my client:
"C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config"
Is there any way to achieve the same using the "DynamicsNAV://" protocol handler url? Something like this:
"DynamicsNav://xxx:10046/yyy//" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config" (<- that doesn't work - it ignores the settings switch)
(Reason: I need to put that url into the "Windows Client Base URL"-field of the server instance to force use a certain config file with that instance)
Thanks in advance!
Markus
0
Best Answer
-
I think there is no way to do that through the URL itself by default. But if you look into the app Slawek mentioned, you can extend it with own parameters, which will be than processed into the config file. See class NAV_URI_Extender and look how the '?buildversion=' parameter is handled. Than you can extend the NAVClient class, mainly the function createSettingsFile which can put parameters you want...5
Answers
-
I don't think is it possible with standard NAV, but @kine was working some long time ago on a small app allowing to handle multiple NAV versions through the protocol handler.
You can download it from Mibuso, and try yourself - maybe it will allow you to achieve your goals.
Personally never tried it myself, don't know how it exactly works, but here you have the source code, if you want to investigate the details, and maybe customize it for yourselfSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
Hello Slavek,
thanks for your answer. By the way: How can you do this using the NAV web client? Can you start it and pass all the settings that are available in the .config file to it somehow (must be inside the url)?
Regards,
Markus0 -
I think there is no way to do that through the URL itself by default. But if you look into the app Slawek mentioned, you can extend it with own parameters, which will be than processed into the config file. See class NAV_URI_Extender and look how the '?buildversion=' parameter is handled. Than you can extend the NAVClient class, mainly the function createSettingsFile which can put parameters you want...5
-
Allright, thank you guys for your answers. Maybe I'll try that...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