Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 14, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Why Lookup value has no value after OnChange Event
Misael Ochoa M.
Posts: 45
 
Why Lookup value has no value after OnChange EventYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Oct 08 12:29 PM
I've created an Onchange Event when Lookup Value Changes in order to populate a textbox(Industry)
That's my code:

if (lueSICCode.LookupResultValue != null)
{
Sage.SalesLogix.Entities.SICCODE objSicCode = Sage.Platform.EntityFactory.GetById(lueSICCode.LookupResultValue);
Sage.Entity.Interfaces.ILead lead = (BindingSource.Current as Sage.Entity.Interfaces.ILead);
lead.Industry = objSicCode.Industry;
edtIndustry.Text = objSicCode.Industry;
}

Do someone know why that's happening?
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Why Lookup value has no value after OnChange EventYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Oct 08 3:08 AM
Why are you setting the textbox text again? Just set the lead.Industry property with the value, and ensure the edtIndustry text box is bound to lead.Industry.

It may be worth debugging this in VS to ensure you actually have a value...

if (lueSICCode.LookupResultValue != null)
{
Sage.SalesLogix.Entities.SICCODE objSicCode = Sage.Platform.EntityFactory.GetById(lueSICCode.LookupResultValue);
Sage.Entity.Interfaces.ILead lead = (BindingSource.Current as Sage.Entity.Interfaces.ILead);
lead.Industry = objSicCode.Industry;

edtIndustry.Text = objSicCode.Industry;
}
[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/14/2025 5:35:33 AM