Doddabasappa

Converting from string to UOM

Discussion created by Doddabasappa Champion on Oct 3, 2013
Latest reply on Oct 3, 2013 by cmanhard

Hi,

 

Programmatically I want  change the UOM of the attribute. So I am reading the value from UI in table and assign it to corresponding attribute.  When i tried to convert,  got exception like can’t convert from string to UOM.  

 

afElement.Attributes["AttrName"].DataReference.UOM = (UOM) dtTable2.Rows[1] [0].ToString();

 

Is there any other way to convert from string to UOM.

 

Thanks,

Outcomes