In Part screen customization, I need to force a text field to always be entered as uppercase.
Here’s what I have so far (doesn’t work) plus I’ve tried ToUpper and several variations:
private void SetExtendedProperties()
{
// Begin Wizard Added EpiDataView Initialization
EpiDataView edvPart = ((EpiDataView)(this.oTrans.EpiDataViews["Part"]));
// End Wizard Added EpiDataView Initialization
// Begin Wizard Added Conditional Block
if (edvPart.dataView.Table.Columns.Contains("CommercialBrand"))
{
// Begin Wizard Added ExtendedProperty Settings: edvPart-CommercialBrand
edvPart.dataView.Table.Columns["CommercialBrand"].ExtendedProperties["Uppercase"] = true;
// End Wizard Added ExtendedProperty Settings: edvPart-CommercialBrand
}
// End Wizard Added Conditional Block
}
I tried this… it compiled but didn’t function properly. I queried the record, changed the value and it left it lowercase. Did I misunderstand your suggestion?