Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 25, 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: Opportunity Probability Default Value
Matthew
Posts: 19
 
Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Aug 08 3:55 PM
I am taking away the ability of the sales person to enter a probability %. I want to make the default 100% instead. This is just a value hiding somewhere right? Anyone know where I can change it from zero to 100?
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Aug 08 9:14 PM
Open the form

Insert Opportunity

in Architect.

Add the following line to the AXFormOpen(Sender) Sub:

pklCloseProb.Text = "100"

You will also probably want to disable this control on this form and disable pklProbability on the Opportunity Detail form.

Phil
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Aug 08 9:20 PM
OK, that was the hard way

A better way is to go into

Tools / Manage / Opportunity Defaults

and change the default % there. You will still have to disable the controls if you want to prevent users changing the value.

Phil
[Reply][Quote]
Matthew
Posts: 19
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Aug 08 10:38 AM
Thanks Phil!
[Reply][Quote]
Matthew
Posts: 19
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Aug 08 5:07 PM
Does this setting carry to users though, since it is done in the client? or do you have to make this change on each?
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Aug 08 6:10 PM
The opportunity defaults get read via the

Application.UserOptions.GetCategory("OpportunityDefaults")

mechanism - so you are right, these defaults are user-specific. Well spotted - so you are back to my first suggestion, which just bulldozes over anything which the user has got set up under Opportunity Defaults and sets Close Prob for all users.

Phil

[Reply][Quote]
Matthew
Posts: 19
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Aug 08 10:24 AM
I am on it! Thanks Phil
[Reply][Quote]
Matthew
Posts: 19
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Aug 08 11:06 AM
FYI this does not work exactly because the picklist is not the value. I adjusted the line at about 370 that has this:

"objRS.Fields("CLOSEPROBABILITY").Value = CheckForNull(pklCloseProb.Text)"

and made it this:

objRS.Fields("CLOSEPROBABILITY").Value = 100"

And it seems to be what I need. Thanks for the direction!
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 20 Aug 08 6:02 PM
Hi Matthew

I assure you that my method works (remember it's in AXFormOpen). I just tried it to be sure.

When the opportunity is saved, the value of the close probability is set to whatever is in pklCloseProb.

You have made this change directly - which will work, but could be misleading to the user, because (for example) the value 50 could be displayed on the insert opportunity screen when they are completing it. They click on OK and 50 somehow magically becomes 100 during the save, if you see what I mean.

Phil
[Reply][Quote]
Matthew
Posts: 19
 
Re: Opportunity Probability Default ValueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Aug 08 7:54 AM
I think you are right, I put it in the wrong place. I actually have hidden the display of the probability weight so they should never see anything different. I will make comment about the changes in the form for future dev. Thanks again!
[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/25/2025 7:28:43 AM