<?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 Python script or toolbox tool for end user to add entry to Enterprise GDB Domain in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758457#M58541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Enterprise GDB that has a feature class of our Road network (polylines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the fields within this Feature Class is 'Road Name', this has a domain applied to it so as end users cannot misspell road names when entering them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bottleneck with this setup is that each time a new road is constructed in our Local Government Area the end users has to email me the road name, then I manually enter it into the domain myself. This can be a delay for the end user&amp;nbsp;and is not ideal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ideal scenario would be a toolbox tool that I can create so the end user can open it, and simply enter a road name and click run, and the road name will be added to the domain for them to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to even start something like this, has anyone else got a similar setup with a solution I could apply?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jan 2017 23:10:37 GMT</pubDate>
    <dc:creator>BenVan_Kesteren1</dc:creator>
    <dc:date>2017-01-16T23:10:37Z</dc:date>
    <item>
      <title>Python script or toolbox tool for end user to add entry to Enterprise GDB Domain</title>
      <link>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758457#M58541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an Enterprise GDB that has a feature class of our Road network (polylines).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the fields within this Feature Class is 'Road Name', this has a domain applied to it so as end users cannot misspell road names when entering them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The bottleneck with this setup is that each time a new road is constructed in our Local Government Area the end users has to email me the road name, then I manually enter it into the domain myself. This can be a delay for the end user&amp;nbsp;and is not ideal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ideal scenario would be a toolbox tool that I can create so the end user can open it, and simply enter a road name and click run, and the road name will be added to the domain for them to use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea how to even start something like this, has anyone else got a similar setup with a solution I could apply?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2017 23:10:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758457#M58541</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-01-16T23:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python script or toolbox tool for end user to add entry to Enterprise GDB Domain</title>
      <link>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758458#M58542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there is a tool available in Arctoolbox&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-domains-toolset.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-domains-toolset.htm"&gt;An overview of the Domains toolset—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or a category in arcpy ...&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/domain.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/domain.htm"&gt;Domain—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but sometimes, if you can't access an arctoolbox tool or classes and functions in arcpy then you have to go the arcobjects route.&lt;/P&gt;&lt;P&gt;So... what is your actual workflow? &amp;nbsp;How do you do it manually?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 00:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758458#M58542</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-01-17T00:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python script or toolbox tool for end user to add entry to Enterprise GDB Domain</title>
      <link>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758459#M58543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend allowing the user to create a .txt or .csv file and then using&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/table-to-domain.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/table-to-domain.htm"&gt;Table To Domain—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&amp;nbsp; With the append&amp;nbsp;option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also recommend resorting the value every once in a while, if many items have been added (or each time). &amp;nbsp;Should speed things up. &amp;nbsp;&lt;SPAN style="text-decoration: line-through;"&gt;I can't remember if this us a standard tool for the sort, or something from GitHub (not at office to check what I use)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/sort-coded-value-domain.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/sort-coded-value-domain.htm"&gt;Sort Coded Value Domain—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 03:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758459#M58543</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-01-17T03:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Python script or toolbox tool for end user to add entry to Enterprise GDB Domain</title>
      <link>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758460#M58544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I right click on my DB connection as administrator, click the domains tab and type it into the grid in that window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We do not allow end users to have the admin password, so the end user cannot do this themselves, so I am trying to get around this by creating something they can use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 00:22:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758460#M58544</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-01-19T00:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python script or toolbox tool for end user to add entry to Enterprise GDB Domain</title>
      <link>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758461#M58545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/add-coded-value-to-domain.htm"&gt;Add Coded Value to Domain&lt;/A&gt;&amp;nbsp;GP tool would get you there. The tricky part is that if the end user is to run the process they will need to execute it on the administrator database connection. If you are ok with the end user adding these values with you validating them first, you could have the process run on a database connection in a hidden folder, or create a database connection with the necessary privileges, update the domain, and then delete the connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wanted to validate the values first or don't want the end users to make the change directly in the workspace, Rebecca's idea may help streamline that as well. You could set up a tool to allow the user to populate a table with the&amp;nbsp;new code/code description values, then have a nightly (or on-demand) process that would add all the values to the domain run in your administrative environment and then truncate the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 00:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-script-or-toolbox-tool-for-end-user-to-add/m-p/758461#M58545</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-01-19T00:33:43Z</dc:date>
    </item>
  </channel>
</rss>

