<?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: Expression in Attribute Rule in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391849#M79890</link>
    <description>&lt;P&gt;Three things:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Order of Parts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Line 1: Number\Year&lt;BR /&gt;Line 5: Year\Number&lt;/P&gt;&lt;P&gt;Which is the correct intention?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Intent of Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Including my suggestion below, the three existing responses imply we have three slightly different understandings of the intent of your script.&amp;nbsp; So maybe we should start there: What&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; the script return?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Path Concatenation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(&lt;STRONG&gt;N.B.&lt;/STRONG&gt; This assumes that having the strings "Number" and "Year" as path elements is the error.&amp;nbsp; If this is an incorrect assumption, see #2 above and let us know what you're looking for.)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Line 5 concatenates the&amp;nbsp;&lt;EM&gt;entire&lt;/EM&gt; path from Line 1.&amp;nbsp; You'll need to strip it down, first.&amp;nbsp; If that path is being generated automatically somewhere, you'd need to split &amp;amp; re-concatenate.&lt;/P&gt;&lt;P&gt;If the script you pasted is 100% of the script, then just remove "Number" and "Year" from Line 1.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 15:05:58 GMT</pubDate>
    <dc:creator>MErikReedAugusta</dc:creator>
    <dc:date>2024-03-06T15:05:58Z</dc:date>
    <item>
      <title>Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391707#M79863</link>
      <description>&lt;P&gt;Hello all&lt;BR /&gt;I wrote an expression without errors, but the result is incorrect.&lt;BR /&gt;Is the expression written incorrectly, or is there another solution?&lt;BR /&gt;Please help&lt;BR /&gt;Expression:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var path = "\\192.168.10.20\\ls\\Number\\Year";
var year = $feature.Year; // Assuming Year is a field in your dataset
var number = $feature.Number; // Assuming Number is a field in your dataset

return path + "\\" + year + "\\" + number;&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusamJubeh_1-1709717940717.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97024i7721D0ED9F092668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusamJubeh_1-1709717940717.png" alt="HusamJubeh_1-1709717940717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HusamJubeh_0-1709717888637.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97023i903C19FE78E90568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HusamJubeh_0-1709717888637.png" alt="HusamJubeh_0-1709717888637.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I wrote "\\" but the result shows \, so the result is not required and the path cannot be accessed.&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 09:41:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391707#M79863</guid>
      <dc:creator>HusamJubeh</dc:creator>
      <dc:date>2024-03-06T09:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391744#M79874</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/620684"&gt;@HusamJubeh&lt;/a&gt;, The syntax and workflow seems correct.&lt;/P&gt;&lt;P&gt;Could you try opening it with "Ctrl + 'Click'"? [i.e. press "Ctrl" button on keyboard &amp;amp; simultaneously click the mouse button].&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is '14' here a folder or any file? Could you try with any file such as PDF, PNG, JPG etc.?&lt;/P&gt;&lt;P&gt;If it doesn't open, could you test the same with any local drive?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 12:10:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391744#M79874</guid>
      <dc:creator>GeeteshSingh07</dc:creator>
      <dc:date>2024-03-06T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391754#M79876</link>
      <description>&lt;P&gt;If you need two backslashes I would try in any string "\\\\" in any string you need it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;one backslash is like a command "\n" breaks a new line "\t" is a tab, and so on.&lt;BR /&gt;"\\" means draw a single backslash.....if you want 2, a guess you need 4, right?&lt;BR /&gt;&lt;BR /&gt;Could you try it?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 12:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391754#M79876</guid>
      <dc:creator>HildermesJoséMedeirosFilho</dc:creator>
      <dc:date>2024-03-06T12:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391849#M79890</link>
      <description>&lt;P&gt;Three things:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Order of Parts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Line 1: Number\Year&lt;BR /&gt;Line 5: Year\Number&lt;/P&gt;&lt;P&gt;Which is the correct intention?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Intent of Script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Including my suggestion below, the three existing responses imply we have three slightly different understandings of the intent of your script.&amp;nbsp; So maybe we should start there: What&amp;nbsp;&lt;EM&gt;should&lt;/EM&gt; the script return?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Path Concatenation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(&lt;STRONG&gt;N.B.&lt;/STRONG&gt; This assumes that having the strings "Number" and "Year" as path elements is the error.&amp;nbsp; If this is an incorrect assumption, see #2 above and let us know what you're looking for.)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Line 5 concatenates the&amp;nbsp;&lt;EM&gt;entire&lt;/EM&gt; path from Line 1.&amp;nbsp; You'll need to strip it down, first.&amp;nbsp; If that path is being generated automatically somewhere, you'd need to split &amp;amp; re-concatenate.&lt;/P&gt;&lt;P&gt;If the script you pasted is 100% of the script, then just remove "Number" and "Year" from Line 1.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1391849#M79890</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-03-06T15:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1392369#M79956</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;I clicked "Ctrl + 'Click'", but the link could not be opened.&lt;BR /&gt;The path is inside the organization's server. If you copy and paste it, the process is completed successfully, but the expression cannot open the link.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1392369#M79956</guid>
      <dc:creator>HusamJubeh</dc:creator>
      <dc:date>2024-03-07T06:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1392371#M79957</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;I added "\\\\" instead of "\\", and the process succeeded.&lt;BR /&gt;my regards&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1392371#M79957</guid>
      <dc:creator>HusamJubeh</dc:creator>
      <dc:date>2024-03-07T06:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in Attribute Rule</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1392372#M79958</link>
      <description>&lt;P&gt;Thanks&lt;BR /&gt;I typed "\\\\" instead of "\\" and it worked.&lt;BR /&gt;thank you for your comment&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 06:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/expression-in-attribute-rule/m-p/1392372#M79958</guid>
      <dc:creator>HusamJubeh</dc:creator>
      <dc:date>2024-03-07T06:59:32Z</dc:date>
    </item>
  </channel>
</rss>

