Thanks Nyall & Don,

    Obvious when explained!  Excellent, lots of power here.

            Thanks again . . . .

Cheers . . . . . Spring




On 07-Feb-2017 20:31, Nyall Dawson wrote:
On 8 February 2017 at 14:08, Springfield Harrison <stellar...@gmail.com> wrote:
Hello,

     Attempting to use the Data Defined function (tool?).

     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.

     If I use this function on bold Text, it works but that requires no
input, it just toggles.

     Where am I supposed to enter the "Expected Input" colour specifications?
The expression needs to evaluate to a color string, whereas your
expression evaluates to a boolean value.

Something like this is acceptable:

case when "Type" = 'SL' then '#ff0000' else '#00ff00' end

Nyall



Data defined override
Active: yes  (ctrl|right-click toggles)
Expected input:
string [r,g,b,a] as int 0-255
Valid input types:
string
Current definition (expression):
"Type" = 'SL'

Thanks very much . . . .

Cheers . . . . . Springfield Harrison



_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
.


_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to