<?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: Attribute Assistant: Help using the expression method in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211951#M1249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are there a set number of diameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so you should create a subtype of the diameters.&amp;nbsp; Enter the values for the Diameter as you create the different subtypes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in the dialog below the subtypes are your different attributes.&amp;nbsp; When you select your first diameter (in the subtype dialog) go to the attribute and fill in the default value for the description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do this for each subtype.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to populate the value in the field "description" when the value in "diameter" is created or changed. &lt;BR /&gt;&lt;BR /&gt;tableName - water_pipes&lt;BR /&gt;fieldName - description&lt;BR /&gt;valueMethod - expression&lt;BR /&gt;valueInfo - IIF([DIAMETER] &amp;gt;=16, "250")&lt;BR /&gt;onCreate - True&lt;BR /&gt;onChange (attribute) - True&lt;BR /&gt;onChange (geometry) - false&lt;BR /&gt;manualOnly - False&lt;BR /&gt;&lt;BR /&gt;I've tried both creating a new feature and changing the value of an existing feature attribute but this expression is not working. &lt;BR /&gt;Any ideas? I've looked through the forum and found much more complicated expressions that this seems simple in comparison.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Mar 2014 14:32:48 GMT</pubDate>
    <dc:creator>RobertBorchert</dc:creator>
    <dc:date>2014-03-14T14:32:48Z</dc:date>
    <item>
      <title>Attribute Assistant: Help using the expression method</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211950#M1248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to populate the value in the field "description" when the value in "diameter" is created or changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tableName - water_pipes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fieldName - description&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;valueMethod - expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;valueInfo - IIF([DIAMETER] &amp;gt;=16, "250")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;onCreate - True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;onChange (attribute) - True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;onChange (geometry) - false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;manualOnly - False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried both creating a new feature and changing the value of an existing feature attribute but this expression is not working. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? I've looked through the forum and found much more complicated expressions that this seems simple in comparison.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211950#M1248</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2014-03-14T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Help using the expression method</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211951#M1249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are there a set number of diameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so you should create a subtype of the diameters.&amp;nbsp; Enter the values for the Diameter as you create the different subtypes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in the dialog below the subtypes are your different attributes.&amp;nbsp; When you select your first diameter (in the subtype dialog) go to the attribute and fill in the default value for the description.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do this for each subtype.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to populate the value in the field "description" when the value in "diameter" is created or changed. &lt;BR /&gt;&lt;BR /&gt;tableName - water_pipes&lt;BR /&gt;fieldName - description&lt;BR /&gt;valueMethod - expression&lt;BR /&gt;valueInfo - IIF([DIAMETER] &amp;gt;=16, "250")&lt;BR /&gt;onCreate - True&lt;BR /&gt;onChange (attribute) - True&lt;BR /&gt;onChange (geometry) - false&lt;BR /&gt;manualOnly - False&lt;BR /&gt;&lt;BR /&gt;I've tried both creating a new feature and changing the value of an existing feature attribute but this expression is not working. &lt;BR /&gt;Any ideas? I've looked through the forum and found much more complicated expressions that this seems simple in comparison.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:32:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211951#M1249</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2014-03-14T14:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Help using the expression method</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211952#M1250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No. Right now this is a simple test to see if I can get this to work. There are no subtypes or domains on these fields. The diameter field has a type of double. The description field has a field type of text, length=60. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are there a set number of diameters?&lt;BR /&gt;&lt;BR /&gt;If so you should create a subtype of the diameters.&amp;nbsp; Enter the values for the Diameter as you create the different subtypes.&lt;BR /&gt;&lt;BR /&gt;Then in the dialog below the subtypes are your different attributes.&amp;nbsp; When you select your first diameter (in the subtype dialog) go to the attribute and fill in the default value for the description.&lt;BR /&gt;&lt;BR /&gt;You can do this for each subtype.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211952#M1250</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2014-03-14T14:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Help using the expression method</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211953#M1251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let me rephrase it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will there be a set number of diameters?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211953#M1251</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2014-03-14T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Help using the expression method</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211954#M1252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. The diameter will be constrained by a range domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Let me rephrase it.&lt;BR /&gt;&lt;BR /&gt;Will there be a set number of diameters?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211954#M1252</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2014-03-14T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Assistant: Help using the expression method</title>
      <link>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211955#M1253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The solution is that the IIF operator requires 3 arguments. My expression should have been written as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IIF([DIAMETER] &amp;gt;=16, "250", NULL) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI tech support helped me understand I needed the 3rd argument. It was actually very helpful to know this because it meant that I could write the expression as: IIF([DIAMETER] &amp;gt;=16, "250", "350"). If the pipe diameter is greater or equal to 16 then populate the&amp;nbsp; description field as "250" otherwise populate the description field as "350". It saved me from need adding a second expression record in the dynamic table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example on this page has a good description:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://msdn.microsoft.com/en-us/library/27ydhh0d(v=vs.90).aspx" rel="nofollow" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/27ydhh0d(v=vs.90).aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to populate the value in the field "description" when the value in "diameter" is created or changed. &lt;BR /&gt;&lt;BR /&gt;tableName - water_pipes&lt;BR /&gt;fieldName - description&lt;BR /&gt;valueMethod - expression&lt;BR /&gt;valueInfo - IIF([DIAMETER] &amp;gt;=16, "250")&lt;BR /&gt;onCreate - True&lt;BR /&gt;onChange (attribute) - True&lt;BR /&gt;onChange (geometry) - false&lt;BR /&gt;manualOnly - False&lt;BR /&gt;&lt;BR /&gt;I've tried both creating a new feature and changing the value of an existing feature attribute but this expression is not working. &lt;BR /&gt;Any ideas? I've looked through the forum and found much more complicated expressions that this seems simple in comparison.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 16:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/attribute-assistant-help-using-the-expression/m-p/211955#M1253</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2014-03-17T16:06:44Z</dc:date>
    </item>
  </channel>
</rss>

