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!
|
|
SLAPI.Dll
Posted: 04 Dec 07 4:04 PM
|
Hi, I am trying to get the Log on Information from SLAPI. We are logging into sales logix using SLAPI. I need to get the Database info and Server Info. I am using MsgBox "DBInfo : " & slapi_DBGetInfo(llngHandle, "AliasName") & Chr$(13) & _ slapi_DBGetInfo(llngHandle, "MasterUserName") & Chr$(13) & _ slapi_DBGetInfo(llngHandle, "MasterPassword")
Getting UserName and Password but not DBName or servername.
Thanks |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 7:22 AM
|
Nobody uses SLAPI anymore.. it's an obsolete interface technology.
Connect up to the SalesLogix Provider and do the "ADO" thing.
Just create a connection string and follow Chris' example (replacing the normal SalesLogix Connection stuff w/yours): http://www.slxdeveloper.com/page.aspx?id=35&articleid=76
-- rjl
|
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 7:55 AM
|
Yeah but my requirement is to connect to SLAPI using BDE logins and need to get BDE login information. i.e Databasename or AliasName or ServerName, Username and password.
Thanks Raj |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 9:18 AM
|
What version is your SalesLogix database?
Do you have SalesLogix Remotes? If so will you be making changes to SalesLogix that needs to be synced to the remotes? |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 10:39 AM
|
You get BDE alias lists and the user ID's from the Registry - look in HKCU and HKLM under either /Software/SalesLogix/Logins or /Software/Interact Commerce/SalesLogix/Logins.
You won't get the passwords in any case, of course. Depending on version, you might see the SYSDBA password in there, but it's encrypted (as it should be!).
If you want the server and name of the underlying database (rather than just the alias), then you have two options - log in to the SLX database via SLAPI and make calls to slx_DBGetInfo(), which in your case apparently isn't working, or parse the IDAPI32.CFG file directly.
IDAPI32.CFG is a streamed binary, so parsing it takes some coding... but if you absolutely must get the info prior to the login or slx_DBGetInfo() just isn't getting it done, post a reply to that effect and I'll see what I can do. (Though I'm not the only one who's done it, of course.) |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 3:40 PM
|
Originally posted by Raj
Yeah but my requirement is to connect to SLAPI using BDE logins and need to get BDE login information. i.e Databasename or AliasName or ServerName, Username and password.
Thanks Raj |
|
So you are "Pre-v6.x" SalesLogix.. right?
Too bad... all before v7.0 are non-supported versions of SalesLogix.
Why have you not upgraded? -- rjl |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 6:12 PM
|
"Too bad... all before v7.0 are non-supported versions of SalesLogix"
RJL - Are you telling us that 6.2.6 is not supported? Since when? |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 7:53 PM
|
Originally posted by Stuart
"Too bad... all before v7.0 are non-supported versions of SalesLogix"
RJL - Are you telling us that 6.2.6 is not supported? Since when? |
|
Opps.. "slip"... Pre v6.2.x NOT supported (but in reality.. only 6.2.6 really works because of DST -- rjl |
|
|
|
Re: SLAPI.Dll
Posted: 05 Dec 07 8:01 PM
|
Originally posted by Bob (RJ)Ledger
Opps.. "slip"... Pre v6.2.x NOT supported (but in reality.. only 6.2.6 really works because of DST -- rjl |
|
Qualification... on SLAPI.... SLAPI is really NOT supported Post 6.x.
It's really a "hack" setup (post 5.2.6a) in case folks did not have the source code to their SLAPI based external apps. Not nice to deal with and NO new apps should ude it. SDK support will tell you that. -- rjl |
|
|
|