<?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>idea Use a database function in an attribute rule in Attribute Rules Ideas</title>
    <link>https://community.esri.com/t5/attribute-rules-ideas/use-a-database-function-in-an-attribute-rule/idi-p/1354417</link>
    <description>&lt;P&gt;Most of the time Arcade has the functionality we need for attribute rules. But there are cases where Arcade is too complicated, inefficient, or limited. It would be great if we could pass a value to a database function as a plan B.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Such as pass the shape to a db function to determine if the shape's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;U&gt;geometry&lt;/U&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is null.&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-questions/select-features-that-have-blank-shapes/m-p/1346965/highlight/true#M44764" target="_self"&gt;Select features that have blank shapes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;If passing a value directly to a database function isn't possible, then what about running a simple SELECT query and evaluating the result?&lt;PRE&gt;select isBlank(shape) from dual&lt;BR /&gt;--the result will be 0 or 1&lt;/PRE&gt;If the result is 0, then allow the edit in a validation attribute rule. If the result is 1, then don't allow the edit in the attribute rule.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 08 Dec 2023 15:14:45 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2023-12-08T15:14:45Z</dc:date>
    <item>
      <title>Use a database function in an attribute rule</title>
      <link>https://community.esri.com/t5/attribute-rules-ideas/use-a-database-function-in-an-attribute-rule/idi-p/1354417</link>
      <description>&lt;P&gt;Most of the time Arcade has the functionality we need for attribute rules. But there are cases where Arcade is too complicated, inefficient, or limited. It would be great if we could pass a value to a database function as a plan B.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Such as pass the shape to a db function to determine if the shape's&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;U&gt;geometry&lt;/U&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is null.&amp;nbsp;&lt;A href="https://community.esri.com/t5/data-management-questions/select-features-that-have-blank-shapes/m-p/1346965/highlight/true#M44764" target="_self"&gt;Select features that have blank shapes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;If passing a value directly to a database function isn't possible, then what about running a simple SELECT query and evaluating the result?&lt;PRE&gt;select isBlank(shape) from dual&lt;BR /&gt;--the result will be 0 or 1&lt;/PRE&gt;If the result is 0, then allow the edit in a validation attribute rule. If the result is 1, then don't allow the edit in the attribute rule.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 08 Dec 2023 15:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-ideas/use-a-database-function-in-an-attribute-rule/idi-p/1354417</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2023-12-08T15:14:45Z</dc:date>
    </item>
  </channel>
</rss>

