Bug with Binding a Picklist Control in the Infor CRM (formerly Saleslogix) Web Client v8.1 Core Update 3b

I just recently discovered a bug when using a picklist control with the  StorageMode set to “ID”.  If you are trying to preset a value on the form load, you would normally bind the underlying entity property that the control is bound to.  That works fine for picklists set to StorageMode=Text but for the ID mode it does not display a value.  Instead you also need to populate the web control’s PickListValue property as well.  That forces the data to properly show

So a code snippet might look like this

Sage.Entity.Interfaces.ITicket t = this.BindingSource.Current as Sage.Entity.Interfaces.ITicket;

t.StatusCode = “Some picklist ID”;

MyPicklistControl.PickListValue = “Some picklist ID”

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

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

You have Successfully Subscribed!