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;