<?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: How to use abbreviation  labelling in arcade ArcGIS online. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1379082#M57332</link>
    <description>&lt;P&gt;hi... we manage to label it ... thank you so much&lt;/P&gt;</description>
    <pubDate>Wed, 07 Feb 2024 14:43:32 GMT</pubDate>
    <dc:creator>NadiaAlami</dc:creator>
    <dc:date>2024-02-07T14:43:32Z</dc:date>
    <item>
      <title>How to use abbreviation  labelling in arcade ArcGIS online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378524#M57282</link>
      <description>&lt;P&gt;Hi everyone, i try to use arcade to label my data in ArcGIS online but I'm not manage to do it since I'm very bad in coding and new to arcade.&lt;BR /&gt;I have a water pipe data where in the attributes I have field of pipe material and pipe diameter( both are domain coded),&lt;BR /&gt;I want to label my data using both field and I want to abbreviate the text for example&amp;nbsp;&lt;BR /&gt;Mild Steel to MS, Unknown to Unk ,Abestos Cement to AC and so on..&lt;BR /&gt;It should be label as per figure attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NadiaAlami_0-1707188877297.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93812iF1A2021286654EEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NadiaAlami_0-1707188877297.png" alt="NadiaAlami_0-1707188877297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;for ArcGIS Pro , i manage to use the abbreviation library but&amp;nbsp; when published to online, it's not working. I try to use function replace but not work..&amp;nbsp; What should i do..&lt;BR /&gt;&lt;BR /&gt;Thank You in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 03:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378524#M57282</guid>
      <dc:creator>NadiaAlami</dc:creator>
      <dc:date>2024-02-06T03:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use abbreviation  labelling in arcade ArcGIS online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378551#M57285</link>
      <description>&lt;P&gt;Dear Nadia,&lt;/P&gt;&lt;P&gt;I hope you are doing great when reading this message,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share more info on your attribute table and fields and values.&lt;/P&gt;&lt;P&gt;Thank you and best of luck&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 08:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378551#M57285</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2024-02-06T08:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use abbreviation  labelling in arcade ArcGIS online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378592#M57289</link>
      <description>&lt;P&gt;Would something like this work for your arcade pop up expression?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var pipe_mtrl = $feature.Pipematerial // Replace with your pipe material field name
var pipe_diam = $feature.Pipediameter // Replace with diameter field

// Add below asbestos cement for more materials. Not provided is your catch all; change to whatever default return is needed
var pipe_abbrv = When(
  pipe_mtrl == 'Mid Steel', 'MS',
  pipe_mtrl == 'Unknown', 'UNK',
  pipe_mtrl == 'Asbestos Cement', 'AC',
  'Not Provided'
  )

return { 
	type : 'text', 
	text : `${pipe_abbrv} ${pipe_diam}`
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 12:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378592#M57289</guid>
      <dc:creator>JohnEvans6</dc:creator>
      <dc:date>2024-02-06T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use abbreviation  labelling in arcade ArcGIS online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378642#M57292</link>
      <description>&lt;P&gt;&lt;STRONG&gt;When &lt;/STRONG&gt;is a good function for this, as &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/338797"&gt;@JohnEvans6&lt;/a&gt;&amp;nbsp; demonstrates well. I'd also like to suggest using &lt;STRONG&gt;Decode&lt;/STRONG&gt;, for when you're simply rewriting the contents of an entire field. You point the function at the field you're using, then supply a series of matching values, then a fallback at the end.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return Decode(
  $feature.Pipematerial,
  'Mid Steel', 'MS',
  'Unknown', 'UNK',
  'Asbestos Cement', 'AC',
  $feature.Pipematerial
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If no match is found, it will return the unabbreviated value at the end.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 15:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1378642#M57292</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-02-06T15:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use abbreviation  labelling in arcade ArcGIS online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1379081#M57331</link>
      <description>&lt;P&gt;hi... we manage to label it ... thank you so muchh&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1379081#M57331</guid>
      <dc:creator>NadiaAlami</dc:creator>
      <dc:date>2024-02-07T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use abbreviation  labelling in arcade ArcGIS online.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1379082#M57332</link>
      <description>&lt;P&gt;hi... we manage to label it ... thank you so much&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-use-abbreviation-labelling-in-arcade-arcgis/m-p/1379082#M57332</guid>
      <dc:creator>NadiaAlami</dc:creator>
      <dc:date>2024-02-07T14:43:32Z</dc:date>
    </item>
  </channel>
</rss>

