title: Bind values dynamically to TextView properties in SAPUI5
body: <p>I am designing a table with different columns filled with data, from an SAP OData backend, into textviews.</p>
  
  <p>The design and semanticColor properties of the <code>TextView</code> are values received as a string. However loading fails with an error message: "String XY cannot be interpreted as design" // "..as semantic color" after binding in the following way..</p>
  
  <pre><code>oTable.addColumn(new sap.ui.table.Column({
    template : new sap.ui.commons.TextView({
      text : "{MyBackendElement}",
      textAlign : sap.ui.core.TextAlign.Center,
      design : "{Class}",
      semanticColor : "{FontClass},
    }),
    visible : true,
  }));
  </code></pre>
  
  <p>If I put in the design and semantic color directly, everything works fine, but how can I make this from my service? which data type does it need? Is it possible to transform the string defined in brackets {} for design and semantic color??</p>
  
  <pre><code>oTable.addColumn(new sap.ui.table.Column({
    template : new sap.ui.commons.TextView({
      text : "{MyBackendElement}", 
      textAlign : sap.ui.core.TextAlign.Center,
      design : sap.ui.commons.TextViewDesign.Bold,
      semanticColor : sap.ui.commons.TextViewColor.Critical,
    }),
    visible : true,
  }));
  </code></pre>