<?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: Code Sample containing &amp;quot;@id&amp;quot; is being reformatted upon saving in Community Feedback</title>
    <link>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134396#M1170</link>
    <description>&lt;P&gt;There it goes!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1642440330721.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31648iE5C3818606675423/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1642440330721.png" alt="jcarlson_1-1642440330721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Stranger still, if I go to edit that post and change the expression the '@ID' portion of the code block is &lt;EM&gt;dropped entirely&lt;/EM&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jan 2022 17:25:56 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2022-01-17T17:25:56Z</dc:date>
    <item>
      <title>Code Sample containing "@id" is being reformatted upon saving</title>
      <link>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134392#M1168</link>
      <description>&lt;P&gt;Hello! Came across what I believe to be a minor bug in the code blocks on Community posts.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var id = "@id"&lt;/LI-CODE&gt;&lt;P&gt;In composing this post, here's what I see:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1642440139084.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31646iCCABA9A1409B473E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1642440139084.png" alt="jcarlson_0-1642440139084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm going to save this post, and if it behaves like I saw in another post recently, it's going to be different. Will edit this post shortly with the results.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 17:22:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134392#M1168</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-17T17:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Code Sample containing "@id" is being reformatted upon saving</title>
      <link>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134394#M1169</link>
      <description>&lt;P&gt;Well, it didn't do it. I'll post the full code from the &lt;A href="https://community.esri.com/t5/arcgis-online-questions/cannot-call-member-property-on-object-of-this-type/m-p/1134380#M43796" target="_blank"&gt;related post&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var fs = FeatureSetByName($datastore, "Hydrant Inspections")
var id = $feature.hydrantID // just replace with your own field name as needed

// Get inspections for clicked hydrant
var filt_fs = Filter(fs, "hydrantID = &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/354972"&gt;@ID&lt;/a&gt;")

// Order inspections with most recent first
var ordered_fs = OrderBy(filt_fs, "InspectionDate DESC")

// Return most recent inspection specific to hydrant
var inspection = First(fs)

return inspection.InspectionDate&lt;/LI-CODE&gt;&lt;P&gt;Perhaps it behaves differently in a reply than the main post, or perhaps that other post was just a fluke. Again, what I'm seeing while composing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1642440301800.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31647iA986DC0C6064D2B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1642440301800.png" alt="jcarlson_0-1642440301800.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 17:24:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134394#M1169</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-17T17:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Code Sample containing "@id" is being reformatted upon saving</title>
      <link>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134396#M1170</link>
      <description>&lt;P&gt;There it goes!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1642440330721.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31648iE5C3818606675423/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1642440330721.png" alt="jcarlson_1-1642440330721.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Stranger still, if I go to edit that post and change the expression the '@ID' portion of the code block is &lt;EM&gt;dropped entirely&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 17:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/community-feedback/code-sample-containing-quot-id-quot-is-being/m-p/1134396#M1170</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-01-17T17:25:56Z</dc:date>
    </item>
  </channel>
</rss>

