Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 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: How to handle Account Opportunity Record delete event?
Irfan Saeed
Posts: 4
 
How to handle Account Opportunity Record delete event?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Jul 08 5:30 AM
How to handle the account and opportunity delete event.

What I want to do is to stop all users to delete account and opportunity if record is more than 1 day old. Only admin and one perticular user can delete it with out any restriction.

any suggestion/idea.

Irfan
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: How to handle Account Opportunity Record delete event?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 3:23 AM
Your only option here is to intercept the delete (by re-doing the delete function) and then checking via code etc. If it is OK to delete, then you just go and delete the data as SLX would.
[Reply][Quote]
Irfan Saeed
Posts: 4
 
Re: How to handle Account Opportunity Record delete event?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 5:14 AM
Mike,

Thanks for the reply. I did explore some of the Global Scripts and after SQL trace I finally found a quick and easy solution.

When you click Ctrl+D or select delete from edit menu it will trigger EditDeleteItem functions which exists in Global System (Global Script).

One of the function is "OnBeforeFunctionExecute_EditDeleteItem(functionNumber, functionName)" where you can put your code in specific Case and it will execute you code before physical delete. To stop physical delete you just needs to return false.

For Delete FunctionNumber should be 34.

Hope it helps.
Irfan
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: How to handle Account Opportunity Record delete event?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 5:19 AM
Yes, of course ! Should have thought of that - sorry !
[Reply][Quote]
Irfan Saeed
Posts: 4
 
Re: How to handle Account Opportunity Record delete event?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Jul 08 5:26 AM
Just found two good article posted somewhere in the forum!

Deploying a SalesLogix Custom Secured Function - And Integrating it with Global Events, Menus and Toolbars
http://web.archive.org/web/20070101151731/http://www.saleslogix-guru.com/custom-secured-function.html

More Global Function Tricks - Removing Disabled Functions From Toolbars and Menus
http://web.archive.org/web/20060529213811/http://www.saleslogix-guru.com/more-global-function-tricks.html

It might help.

Thanks.
Irfan
[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): 8/24/2025 7:10:05 AM