11/22/2024 9:55:45 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss general external development topic (related or not to SalesLogix development). View the code of conduct for posting guidelines.
|
|
|
|
finding the port number and servername
Posted: 04 Dec 06 9:38 AM
|
fiogf49gjkf0d is there any saleslogix API to finding the serverport number and saleslogix servername by using alias name i have tried with SlxOleDBConfig.getConfigMgrInfo(aliasname,out port,out servername ) method. I got corrent servername but port number is other than 1706 which is configured on my machine.
|
|
|
|
Re: finding the port number and servername
Posted: 04 Dec 06 11:20 AM
|
fiogf49gjkf0d Are you trying to determine that from your connection, or trying to get those details to make a connection?
If you're trying to find those out from the connection, you could get your connection string and parse them out or use the SLX proc "slx_GetLoggedInServerInfo" which will return the server and port you are connected to.
If you have the local client alias/connection name (ie: one entered in the login box of the client, then you can get details about that connection in the registry. Look at the tree under HKCU:Software\SalesLogix\ADOLogin\ (Connection1 through Connection10 - Connection1 will be the last one used). You can get extended properties about that connection such as the Data Source (SLX Server) and the port number. See more about that here http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=57
You could always just add that as a configuration value or prompt for it.
-Ryan
|
|
|
|
Re: finding the port number and servername
Posted: 05 Dec 06 12:47 AM
|
fiogf49gjkf0d thanx for quick reply.. my exact question is i have installed saleslogix client (either saleslogix network client or saleslogix web client) in my machine and saleslogix is installed in some other machine i have 3 paramets with me for login saleslogix client (i.e, 1.slxusername 2.slxpassword 3.slxaliasname(value enter in to Log on to field in sales logix login window)) by using above 3 parameters is it possible to get port number,servername,initial catalog and Log status .
simply i want to make a connection sting by using above 3 parametrs without starting saleslogix client application
tahnx veeranjan |
|
|
|
Re: finding the port number and servername
Posted: 05 Dec 06 9:20 AM
|
fiogf49gjkf0d If you want to connect with only those 3 values then you do have to get the rest of the details from the registry. No other way to determine the port and other details.
See the article I linked to before. It shows how to build a login screen to connect usinsg only those 3 values and should give you exactly what you need. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|