Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 20, 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: trigger before next record
Glenn Williams
Posts: 51
 
trigger before next recordYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Oct 07 10:18 AM
On our custom Opportunity screen I have a field that I want to allow users to lower the dollar value, but not increase. When the user enters a value I use the OnEnter and OnUpdate (I think these are the names) to prevent the user from increasing the value. Unfortunately, If the user enters a value and immediately clicks the right arrow to advance to the next opportunity no checks are done and the record is saved.

I can't determine any method of preventing this.

Thanks for your help.
[Reply][Quote]
John Foster
Posts: 18
 
Re: trigger before next recordYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Oct 07 4:36 PM
You can use either the OnBeforeRecordClose or OnValidate form events.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: trigger before next recordYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 07 8:41 AM
Assuming you capture the dollar value when the opportunity is AXFORMCHANGE (global variables use less resources than a control e.g. txtOldDollarValue.TEXT as an invisible control would be my second choice to gOldDollarValue = txtSalesPotential.TEXT ).

OnExit of the control is always good.....and I thought this had been tightened up to capture all control exit events including special keys, tabs, menu items, clicking on a non SLX window, icons, etc.....but using John's Form Events also works, now that you know the initial value of DollarValue and have the new screen value and can compare it......
[Reply][Quote]
Glenn Williams
Posts: 51
 
Re: trigger before next recordYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Oct 07 8:44 AM
I will go back and try your suggestions, but I'm pretty sure I tried all the triggers. Thanks very, very much.
[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): 6/20/2025 2:55:50 PM