Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
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!
 Web Forums - ASP/ASP.NET/Web Services/Other
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to ASP/ASP.NET/Web Services/Other | New ThreadView:  Search:  
 Author  Thread: Access who is logged in outside of administrator
David Nunnally
Posts: 206
 
Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 06 8:56 AM
fiogf49gjkf0d
I need to list the users logged into SLX outside of the administrator. How do I do this?
[Reply][Quote]
Duncan Cook
Posts: 164
 
Re: Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 06 4:20 PM
fiogf49gjkf0d
I believe this info is held with the provider and not with the database, so if there isn't a way to read this from the provider you can't.

Another option would be to customise the client to log when a user has login and logged out.
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 06 4:43 PM
fiogf49gjkf0d
I guess I should have worded this post better. Yes, I need to access the connection list of the SLX provider the same way the administrator does.

When they log in and out as well as other info about the client is taken care of by a global script I wrote and I use a crystal report to display it. What I need here in simplest terms is a web page with a list of users logged in at that moment. At the moment I can open administrator to the all users tab and see this info and make a print screen. The next steps will add emailing capability and logging snapshots throughout the day.
[Reply][Quote]
Duncan Cook
Posts: 164
 
Re: Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Jul 06 5:18 PM
fiogf49gjkf0d
Sounds like a great plan, I would be interested if anyone knows if it is possible, having this list available via the web client would be a very useful feature.
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 06 1:05 PM
fiogf49gjkf0d
I don't think it's in the Provider, or if it is it is an internal function that is somehow blocked from the SLXProfiler. The profiler shows these 3 statements every minute or so and when I press the "Refresh login count" button:

SELECT LICNUM FROM BRANCHOPTIONS
SELECT A1.COMPANYNAME FROM SYSTEMINFO A1 WHERE (UPPER(A1.SYSTEMINFOID)='PRIMARY')
SELECT A1.LICNUMBER, A1.USERID FROM LICENSES A1
call slx_GetConcurrentAvailable('SALESLOGIX', 0)

If I had to guess, it is doing some internal checking against the licenses and before or after the slx_GetConcurrentAvailable call is where the hidden routine is returning the logged in users. It could be an internal stored procedure only Administrator can access or it could be a routine entirely within Admin.exe itself. It's pretty clear based on the license check that they want very much to keep this contained for security reasons but exposing an external GetLoggedInUsers() function would be ideal.
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Jul 06 3:33 PM
fiogf49gjkf0d
If you use a global script to capture a login timestamp and a logout timestamp it would be pretty easy to tell who is logged in. If logindate > logoutdate then your user is currently logged in. The only problem with this is if the client closes unexpectedly, I don't believe a global Application_Logout script will fire which will leave the database thinking you're still logged in.

Not as eligant or as reliable as a slx_GetLoggedInUsers() function but at least you wouldn't have to wait for Sage to pull that one out of their poop chute.
[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Access who is logged in outside of administratorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jul 06 8:35 AM
fiogf49gjkf0d
I did not even think about trying the slxprofiler. Well, it was a good idea in theory! But like many goods ideas - SHOT DOWN IN FLAMES!
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 4:28:42 PM