Parameters for RoleTailored Client

RudiRutscheRudiRutsche Member Posts: 30
edited 2008-11-03 in NAV Three Tier
Hey!

Ist there any way to use parameters when calling the RoleTailored Client?

Since you have to restart the Client when there have been changes to tables oder reports it is very annoying that the RoleTailored Client tries to connect to the standard port 7046.
Isn`t it possible to define WHICH database to connect to BEFORE the RTC tries to connect?

I there is no way, is it at least possible to shorten the time out setting, so that the RTC won`t try to connect for around half a minute?

Comments

  • ara3nara3n Member Posts: 9,256
    Hello

    You can modify the ClientUserSetting.config file to achieve what you want. In XP it is stored in


    C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\ClientUserSettings.Config



    The config file is an xml file.
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    	<appSettings>
    		<add key="Server" value="localhost"></add>
    		<add key="ServerInstance" value="DynamicsNAV"></add>
    		<add key="ServerPort" value="7046"></add>
    	</appSettings>
    </configuration>
    


    On Vista it is stored in a different folder.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    There is a bug in CTP4 (which includes the marketing beta) which means that it doesn't store the selected port in the ClientSettings.config file.

    Meaning that if you say Select Server and choose MyServer:1234/DynamicsNAV - then it will remember MyServer and DynamicsNAV but it will still try to connect on 7046.

    You can modify this manually in the ClientSettings.config , which is in

    C:\Documents and Settings\<username>\Local Settings\Application Data\Microsoft\Microsoft Dynamics NAV\

    on my Windows XP and my Windows 2003 Server box and

    C:\Users\<username>\AppData\Local\Microsoft\Microsoft Dynamics NAV\ on my Vista box.

    You can also create a shortcut and start the Role Tailored Client using
    dynamicsnav://<servicetier-machine>[:<port>]/<servicetier-instance>/<company>/
    
    example
    
    dynamicsnav://myserver:1234/DynamicsNAV/CRONUS%20International%20Ltd./
    
    You can read more about this here:

    http://blogs.msdn.com/freddyk/archive/2008/10/31/4-bat-files-for-the-client-tier.aspx
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
Sign In or Register to comment.