Hoppa till huvudinnehållet

selectfeatures "Description Format"

Kommentarer

4 kommentarer

  • Permanently deleted user
    Hi Carmen, 

     

    You can use inline CSS in the Feature Description to format your text. The LA County Demo site in your Sample Sites folder has some examples. Otherwise, this is an example for the Census Tract layer to make the text italic and red: <span style="font-style: italic;">Population:&nbsp;</span>{TOTPOP}<div><span style="font-style: italic; color:red">Housing Units:&nbsp;</span>{TOTHOUSE}</div><div style="font-style: normal;"><span style="font-style: italic;">Density:</span> {DENSITY} people per sq km</div> You want to look for the STYLE parameter within the tags like this: 

     

    style="font-style: italic; color:red"

     

    I hope this helps.

     

    Regards, 

     

    Carmen

     

     
    0
  • Carmen Durham
    Carmen,

     

    Thanks for your reply. I tried a simplified version of your example in the SelectFeatures activity, but receive an error.

     

    Here is the entry:

     

    User-added image

     

    The error reads: Compiler error.... End of expression expected.

     

    If I take off the leading and ending double quote - there is an error for "not allowing implicit conversions to string"

     

    What am I missing?  Workflow designer 4.5.0.1202

     

    Thanks,

     

    the other Carmen that can't answer all these questions!

     

     
    0
  • Permanently deleted user
    Hi Carmen, 

     

    If you are trying to reference strings within a string, then for every " you have inside the string, you need to change it to "". This way the application will know that you want to use quotations within the string, otherwise it just thinks that you want to end the string. For example, your Description Format needs to be like this: 

     

    "<span style=""font-style: italic;"">Not In City Limits</span>"

     

    I hope this helps

     

    Carmen
    0
  • Carmen Durham
    Thank you.  This worked.  I think I tried everything but that for some reason.

     

    Carmen
    0

Du måste logga in om du vill lämna en kommentar.