Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 23, 2025 
 
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Determine if someone else is viewing(access) same Account and/or Contact
Fred Jahnke
Posts: 2
 
Determine if someone else is viewing(access) same Account and/or ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jul 11 3:44 PM
fiogf49gjkf0d

Story:


  We have several people accessing the same group of records all at one time.  We would like to find a way to add a label on the Account Detail/Contact Detail view, stating who may be accessing this record at the same time.  Stating"record in use by <username>".


Any ideas?


Thanks.

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Determine if someone else is viewing(access) same Account and/or ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Jul 11 4:01 PM
fiogf49gjkf0d
On the WhenChange event you can read from a logging table for this accid,conid the userid on the record. if there is nothing there - then write an entry. This is the user viewing the rec. Update the display accordingly.

On the BeforeRecordChange - delete the row.

This should do it. Of course - there is nothing stopping 2 or more people editing a record. And wouldn't want to change that as it makes it very difficult to work with. The chances of 2 people updating the same info at the same exact time is remote - and handled by pessimistic locking anyway.

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Determine if someone else is viewing(access) same Account and/or ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jul 11 6:15 PM
fiogf49gjkf0d

Actually Mike in a LAN situation the possibilites of this occurring in our workflow system were EXCELLENT, and it caused all sorts of issues. Pessimistic locking doesn't help one bit if the sands underneath your feet have shifted. SLX takes a complete new snapshot of the underlying record just prior to saving your data on the OK button click of a form.....doesn't matter what the data values for the row were 1 - 5 hours ago when you opened up the form and then wandered away for a meeting or lunch. We had business rules and security breaches with regards to functionality at least once a day amongst 50 users.....usually when it was the SAME person with two different sessions of SLX logged in at the same time as different users....working on the SAME Opportunity....


Similar to your row storing technique, we used the form/screen/current session value of the key locking variables (in this case it was Opportunity Phase and Next Phase) and ran a quick DB query to determine if the screen values had changed versus the database....if they had, we simply put up an error message informing the user that we needed to refresh the opportunity....and if they wanted to (and still could) make the change they could go back into the form and try to make the changes.....


Basically if another user had changed the opp phase, another user who didn't have security for that 'new' phase needed to be locked out of the page/form they were on.


 


so any time the user had an opportunity to save data we checked phases.....if it passed, save the data, if it didn;t pass, exit out of the form and refresh data.


 


 

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Determine if someone else is viewing(access) same Account and/or ContactYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jul 11 6:29 PM
fiogf49gjkf0d

Run profiler - it changes just the columns that change - NOT the whole row - as the modify date would not be the same then the locking succeeds.
[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 © 2025 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): 2/23/2025 6:58:03 PM