<?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: Referential integrity / Coded Value Domains in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612248#M4113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;To create the code value domain from table you can use arcobjects (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fhelp.arcgis.com%2Fen%2Fsdk%2F10.0%2FArcObjects_NET%2Fconceptualhelp%2Findex.html%23%2F%2F0001000003mt000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/ArcObjects_NET/conceptualhelp/index.html#//0001000003mt000000&lt;/A&gt;&lt;SPAN&gt;) or Table To Domain&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2FEN%2FHELP%2FMAIN%2F10.1%2Findex.html%23%2F%2F001700000025000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#//001700000025000000&lt;/A&gt;&lt;SPAN&gt; I understand what you mean but Geodatabase is an object relational ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Fmanage-data%2Fgeodatabases%2Fthe-architecture-of-a-geodatabase.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/geodatabases/the-architecture-of-a-geodatabase.htm&lt;/A&gt;&lt;SPAN&gt; ) link useful: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Fmanage-data%2Fgdbs-in-oracle%2Fgeodatabase-admin-vocabulary.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/gdbs-in-oracle/geodatabase-admin-vocabulary.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2015 10:31:46 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2015-12-08T10:31:46Z</dc:date>
    <item>
      <title>Referential integrity / Coded Value Domains</title>
      <link>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612247#M4112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;BR /&gt;Currently I have two problems to solve and I hope you can show me ways so solve them &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We are using an oracle database to store our map data and have established direct connections to edit the map in different versions. &lt;/P&gt;&lt;P&gt;Problem 1: We are using some additional (none versioned) tables to store key-value pairs. In ArcMap we would like to see the "values" instead of the keys. Google told me to use Coded Value Domains - but as I understood its not possible to integrate own database tables. Are there any ways to create those coded values domains "on the fly"?&lt;/P&gt;&lt;P&gt;Problem 2: We would like to use referential integrity with those Key-Value tables. Because of the versioning of the data it makes no sense to create foreign keys. Are there any solutions for this problem, too?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Benedikt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 08:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612247#M4112</guid>
      <dc:creator>BenediktGrabenmeier</dc:creator>
      <dc:date>2015-12-08T08:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity / Coded Value Domains</title>
      <link>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612248#M4113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;To create the code value domain from table you can use arcobjects (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fhelp.arcgis.com%2Fen%2Fsdk%2F10.0%2FArcObjects_NET%2Fconceptualhelp%2Findex.html%23%2F%2F0001000003mt000000" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/ArcObjects_NET/conceptualhelp/index.html#//0001000003mt000000&lt;/A&gt;&lt;SPAN&gt;) or Table To Domain&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2FEN%2FHELP%2FMAIN%2F10.1%2Findex.html%23%2F%2F001700000025000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/EN/HELP/MAIN/10.1/index.html#//001700000025000000&lt;/A&gt;&lt;SPAN&gt; I understand what you mean but Geodatabase is an object relational ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Fmanage-data%2Fgeodatabases%2Fthe-architecture-of-a-geodatabase.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/geodatabases/the-architecture-of-a-geodatabase.htm&lt;/A&gt;&lt;SPAN&gt; ) link useful: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Fdesktop%2Flatest%2Fmanage-data%2Fgdbs-in-oracle%2Fgeodatabase-admin-vocabulary.htm" rel="nofollow" target="_blank"&gt;http://desktop.arcgis.com/en/desktop/latest/manage-data/gdbs-in-oracle/geodatabase-admin-vocabulary.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 10:31:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612248#M4113</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2015-12-08T10:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity / Coded Value Domains</title>
      <link>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612249#M4114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't know ArcObjects you can also execute this task using out-of-the-box tools in Desktop/Pro and can easily automate this with python. You can see examples of the available tools below along with examples of they can be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create Domain&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-domain.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-domain.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table to Domain&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/table-to-domain.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/table-to-domain.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add Coded Value To Domain&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-coded-value-to-domain.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/add-coded-value-to-domain.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Assign Domain To Field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/assign-domain-to-field.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/assign-domain-to-field.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 12:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612249#M4114</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-12-08T12:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Referential integrity / Coded Value Domains</title>
      <link>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612250#M4115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably highly unrecommended:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this SQL query to view my domain values outside an Arc environment. (MSSQL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; codedValue.value('Code[1]','nvarchar(max)') AS "Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; codedValue.value('Name[1]', 'nvarchar(max)') AS "Value"&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM sde.GDB_ITEMS AS items INNER JOIN sde.GDB_ITEMTYPES AS itemtypes&lt;/P&gt;&lt;P&gt;&amp;nbsp; ON items.Type = itemtypes.UUID&lt;/P&gt;&lt;P&gt;&amp;nbsp; CROSS APPLY items.Definition.nodes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ('/GPCodedValueDomain2/CodedValues/CodedValue') AS CodedValues(codedValue)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE itemtypes.Name = 'Coded Value Domain'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also limit it to just one of your domains like I have to view my domain "DOM_STATUS" code value pairs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; codedValue.value('Code[1]','nvarchar(max)') AS "Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; codedValue.value('Name[1]', 'nvarchar(max)') AS "Value"&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM sde.GDB_ITEMS AS items INNER JOIN sde.GDB_ITEMTYPES AS itemtypes&lt;/P&gt;&lt;P&gt;&amp;nbsp; ON items.Type = itemtypes.UUID&lt;/P&gt;&lt;P&gt;&amp;nbsp; CROSS APPLY items.Definition.nodes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ('/GPCodedValueDomain2/CodedValues/CodedValue') AS CodedValues(codedValue)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE itemtypes.Name = 'Coded Value Domain'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; AND items.Name = 'DOM_Status'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have never tried, but maybe you could try writing to these tables too -- I stick to using the Arc tools so far!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 16:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/referential-integrity-coded-value-domains/m-p/612250#M4115</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2016-01-06T16:00:24Z</dc:date>
    </item>
  </channel>
</rss>

