Sage.Entity.Interfaces.ICallReportContact callreportcontact = BindingSource.Current as Sage.Entity.Interfaces.ICallReportContact;
if (callreportcontact.Host123 == "Red")
callreportcontact.Host123 = "Red";
callreportcontact.Host123 = "Blue";
2 – Production Approach
You should default the values in the OnCreate event of the entity. This will ensure that the values are set no matter where the entity is created from.
You retrieve the default picklist item value rather than hard coding a value, that way an Administrator can modify the system behavior at a later date by modifying the picklist definition rather than needing to change code (or edit a string resource) and then have to do a full build and deploy of the web site.
If you want to use the default value of the picklist, you’ll need some code to do that. The Sage.SalesLogix.Picklists class has the functions you need to do that:
public static string GetDefaultPicklistItemValue( string pkName)