7/8/2025 2:34:22 PM
|
|
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!
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.
|
|
|
|
Picklist value from Insert Opp not pulling onto Opp Detail
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. |
|
|
|
Re: Picklist value from Insert Opp not pulling onto Opp Detail
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). |
|
|
| |
|
Re: Picklist value from Insert Opp not pulling onto Opp Detail
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 |
|
|
|
Re: Picklist value from Insert Opp not pulling onto Opp Detail
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 |
|
|
|
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!
|
|
|
|
|
|
|
|