Populating Both an ID and a Text Field with Lookup Results in SalesLogix Web

Question: How can I populate both an ID and a text field with Lookup results in SalesLogix Web v7.5.1?  I have tried to map both the text and the LookupResult value but the text value doesn’t populate.

Answer: You could try to put a C# Snippet in the OnChange Action property for the lookup to update multiple fields using the LookupResultValue property.  Here is an example of code used to populate two fields in an entity using the result of a lookup:

Sage.Entity.Interfaces.ISICCode sic = lueSICCode.LookupResultValue as Sage.Entity.Interfaces.ISICCode;
Sage.Entity.Interfaces.IAccount acc = this.BindingSource.Current as Sage.Entity.Interfaces.IAccount;
acc.Industry = sic.RSIIndustryClass;
acc.SicCode = sic.SICCode;

Submit a Comment

Your email address will not be published.

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!

You have Successfully Subscribed!