<?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: Label Definition / Expression in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810431#M1583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea thats what I was referencing....looked everywhere...every place I looked and found something it was \n&amp;nbsp;&lt;/P&gt;&lt;P&gt;no where did i see if referenced with two \\&amp;nbsp; as your example \\n&lt;/P&gt;&lt;P&gt;But that seems to have worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;// NO
"expression":"$feature.Owner1 + '\n' + $feature.MapNumber"


// YES
"expression":"$feature.Owner1 + '\\n' + $feature.MapNumber"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 09:30:33 GMT</pubDate>
    <dc:creator>jaykapalczynski</dc:creator>
    <dc:date>2021-12-12T09:30:33Z</dc:date>
    <item>
      <title>Label Definition / Expression</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810428#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know if and how I can create the Label expression that puts the values on 2 lines?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #008000;"&gt;"expression"&lt;/SPAN&gt;:&lt;SPAN style="color: #008000;"&gt;"$feature.Owner1&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;' GO TO NEXT LINE&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt;  &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature.MapNumber&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;"

&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;LabelDefinition &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   json&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="string token"&gt;"labelExpressionInfo"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
         &lt;SPAN class="string token"&gt;"expression"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"$feature.Owner1 + '  ' + $feature.MapNumber "&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
                
&lt;SPAN class="comment token"&gt;// SNIP&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;  &lt;SPAN class="comment token"&gt;// END OF LAYER DEFINITION‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810428#M1580</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Label Definition / Expression</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810429#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like the vbNewLine used in ArcMap Label expressions?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried this but no go&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #008000;"&gt;"expression"&lt;/SPAN&gt;:&lt;SPAN style="color: #008000;"&gt;"$feature.Owner1&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;'\n'&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;$feature.MapNumber"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 19:56:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810429#M1581</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-19T19:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Label Definition / Expression</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810430#M1582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the LabelDefinition takes JSON object based on this doc,&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-labeldefinition.html#details" title="https://developers.arcgis.com/qt/latest/qml/api-reference/qml-esri-arcgisruntime-labeldefinition.html#details"&gt;LabelDefinition QML Type | ArcGIS for Developers&lt;/A&gt;, so I assume it would be something like "\\n"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this,&amp;nbsp;&lt;A class="link-titled" href="https://stackoverflow.com/questions/42068/how-do-i-handle-newlines-in-json" title="https://stackoverflow.com/questions/42068/how-do-i-handle-newlines-in-json"&gt;javascript - How do I handle newlines in JSON? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 21:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810430#M1582</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-12-19T21:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Label Definition / Expression</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810431#M1583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea thats what I was referencing....looked everywhere...every place I looked and found something it was \n&amp;nbsp;&lt;/P&gt;&lt;P&gt;no where did i see if referenced with two \\&amp;nbsp; as your example \\n&lt;/P&gt;&lt;P&gt;But that seems to have worked...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;// NO
"expression":"$feature.Owner1 + '\n' + $feature.MapNumber"


// YES
"expression":"$feature.Owner1 + '\\n' + $feature.MapNumber"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810431#M1583</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T09:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Label Definition / Expression</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810432#M1584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that it works.&amp;nbsp;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;You need to escape the "\" in&amp;nbsp;the string (turning it into a double-"\")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 17:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810432#M1584</guid>
      <dc:creator>ErwinSoekianto</dc:creator>
      <dc:date>2019-12-20T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Label Definition / Expression</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810433#M1585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was almost there....ahahhahaahah&lt;/P&gt;&lt;P&gt;one stupid \&lt;/P&gt;&lt;P&gt;Have a great weekend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2019 18:27:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/label-definition-expression/m-p/810433#M1585</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-20T18:27:14Z</dc:date>
    </item>
  </channel>
</rss>

