<div dir="ltr">It says it wants to see the colour value as a string.<div><br></div><div>So in your case, you can use a CASE THEN ELSE END statement to get there.</div><div><br></div><div>CASE WHEN "Type" = 'SL' THEN '255,0,0,100' END</div><div><br></div><div>There the numbers represent 'red,green,blue,alpha'</div><div>Alpha is the transparency value. 0 is completely transparent and 100 is not transparent.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 7, 2017 at 9:08 PM, Springfield Harrison <span dir="ltr"><<a href="mailto:stellargps@gmail.com" target="_blank">stellargps@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div class="m_7356397565271954516moz-cite-prefix">Hello,<br>
      <br>
          Attempting to use the Data Defined function (tool?).<br>
      <br>
          The following configuration has no effect; it may be looking
      for a colour input.  This DD is to set the background colour on a
      label where Type = SL.<br>
      <br>
          If I use this function on bold Text, it works but that
      requires no input, it just toggles.<br>
      <br>
          Where am I supposed to enter the "Expected Input" colour
      specifications?<br>
      <br>
      <span style="font-weight:600;text-decoration:underline">Data
        defined override</span><br>
      <span style="font-weight:600">Active: </span>yes  <span style="font-style:italic">(ctrl|right-click toggles)</span><br>
      <span style="font-weight:600">Expected input:</span><br>
      string [<span style="font-weight:600">r,g,b,a</span>] as int
      0-255<br>
      <span style="font-weight:600">Valid input types:</span><br>
      string<br>
      <span style="font-weight:600">Current definition (expression):</span><br>
      "Type" = 'SL'<br>
      <br>
      Thanks very much . . . .<br>
      <br>
      <div class="m_7356397565271954516moz-signature">Cheers . . . . . Springfield Harrison<br>
      </div>
      <br>
    </div>
    <br>
  </div>

<br>______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-user</a><br></blockquote></div><br></div>