Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 8, 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: Picklist value from Insert Opp not pulling onto Opp Detail
Ian Brown
Posts: 9
 
Picklist value from Insert Opp not pulling onto Opp DetailYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Dec 09 4:12 PM
This is likely a pretty easy question but I am spinning my wheels.

We have a picklist field on the Insert Opportunity form that, when selected, is not showing in the corresponding field on Opportunity Detail. I've checked the data paths on both fields and they are pointing to the correct location. I also checked the script but couldn't find anything there. Any nudge in the right direction would be great. Thanks.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Picklist value from Insert Opp not pulling onto Opp DetailYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 Dec 09 8:44 PM
Are both controls pointing to the Same Picklist?
Or, is the field on the Insert view a Combo box populated via Code?

Also, is the value written to the database during the Insert, but not displayed on the Detail view?
If so, depending on the settings on the picklist, it may show up blank if the value isn't truly defined on the Picklist (Globally or for the Current User).
[Reply][Quote]
Ian Brown
Posts: 9
 
Re: Picklist value from Insert Opp not pulling onto Opp DetailYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 5:57 AM
Both controls point to the same picklist. I tested and the value is not written to the database during the insert therefore not displaying on the Detail view.

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Picklist value from Insert Opp not pulling onto Opp DetailYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 7:11 AM
Now, did you modify the code on the Insert Opportunity view?

As far as I recall, this is not a bound view, and as such it is not enough to drop a control and Bind it (Binding it makes no difference), you have to add some code to save your data.

If you look on the Code, there is a SaveOpportunity function, which calls several other Save functions to create the Opportunity. If your data goes on the OPPORTUNITY record, edit the SaveOpportunityDetailInfo, and add your value to the record before it is saved:

objRS.Fields("MYPICKLISTFIELD").Value = myPicklistControl.Text
....
objRS.Update
[Reply][Quote]
Ian Brown
Posts: 9
 
Re: Picklist value from Insert Opp not pulling onto Opp DetailYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 09 7:14 AM
Yes, I did this morning. I found the SaveOpportunity function and updated it. Testing confirmed this solved the problem!

Not sure why I didn't check to verify the value was written on the first pass..

Thank you for pointing me in the right direction
[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): 7/8/2025 5:33:38 PM