<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Doubt with webmap styles 2 string variables in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1031160#M38697</link>
    <description>&lt;P&gt;Muchas gracias. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; solucionado.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 21:30:56 GMT</pubDate>
    <dc:creator>PlaninforAdmin</dc:creator>
    <dc:date>2021-02-26T21:30:56Z</dc:date>
    <item>
      <title>Doubt with webmap styles 2 string variables</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1030869#M38686</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I have a webmap with a layer and I need to occupy 2 fields to create the style I need, for example:&lt;/P&gt;&lt;P&gt;Type_field: values (type1, type2, type3)&lt;BR /&gt;Active_field: values (YES, NO)&lt;/P&gt;&lt;P&gt;I have the option to add a second field, but the second field can only be of the numeric type, it cannot be of string.&lt;/P&gt;&lt;P&gt;From the beginning I defined it that way.&lt;BR /&gt;Is there a way to change this?&lt;BR /&gt;or maybe it is possible to create an expression that returns a value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try creating an expression like this: Concatenate (DomainName ($ feature, "PLAN_TYPE"), '/', DomainName ($ feature, "ACTIVE"))&lt;/P&gt;&lt;P&gt;but it returns a message saying, "Warning&lt;BR /&gt;The expression must return a numeric value "&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 02:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1030869#M38686</guid>
      <dc:creator>PlaninforAdmin</dc:creator>
      <dc:date>2021-02-26T02:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt with webmap styles 2 string variables</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1030982#M38692</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/325504"&gt;@PlaninforAdmin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It would be best to change the structure of your data since it does not align with what you want to obtain. You can however keep a numeric field and create a domain for it to have an understandable description of the composed value. If you want to symbolize the two fields you don't have to create a new field, you can use Arcade and concatenate the values.&lt;/P&gt;&lt;P&gt;If however, you want to create a unique numeric value, it might be an idea to get a structured result. Have a look at the expression below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var active = DomainName($feature, "ACTIVE");
var plan = DomainName($feature, "PLAN_TYPE");

var dct_active = {"YES": 1, "NO": 2};
var dct_plan = {"type1": 1, "type2": 2, "type3": 3}; 

var result = 0;
if (HasKey(dct_active, active)) {
    result = dct_active[active] * 10;
} else {
    result = -1 * 10;
}

if (HasKey(dct_plan, plan)) {
    result += dct_plan[plan];
} else {
    result += -1;
}

return result;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A value of 13 would represent: ACTIVE Yes and PLAN_TYPE type3...&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 14:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1030982#M38692</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-02-26T14:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt with webmap styles 2 string variables</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1031160#M38697</link>
      <description>&lt;P&gt;Muchas gracias. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; solucionado.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 21:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/doubt-with-webmap-styles-2-string-variables/m-p/1031160#M38697</guid>
      <dc:creator>PlaninforAdmin</dc:creator>
      <dc:date>2021-02-26T21:30:56Z</dc:date>
    </item>
  </channel>
</rss>

