<?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: Unique value in short integer field in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/unique-value-in-short-integer-field/m-p/21455#M134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all are you aware that the range for a signed short integer is between -32767 and 32767.&amp;nbsp; If this is adequate for job then the next series of question would be is how is this being used/inputed/stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not knowing specifics Two ways come to mind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using the database/triggers/procedures create your own auto increment.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. Programmatic means issue a query to yous data source max(yourfield) + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are mobile and disconnected from your data store that create other additional difficulties.&amp;nbsp; As an example I have Bridge Inspectors that go out and Identify Bridge Maintenance needs.&amp;nbsp; Each "Need" must be a unique number but I cannot tell or give the number out in the field.&amp;nbsp; So to get around this -- each mobile app (my case an excel spreadsheet) generates a "local" unique Identifier.&amp;nbsp; When the local data is submitted to me and after Q/A&amp;nbsp; I upload this data to the central repository - Part of my upload process generates the "Next" available unique number to the Need by programmatic means.&amp;nbsp; The Q/A'd application then assigns the local data the "official" Unique Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will trigger some ideas to get you unstuck.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2016 16:53:20 GMT</pubDate>
    <dc:creator>TedKowal</dc:creator>
    <dc:date>2016-03-18T16:53:20Z</dc:date>
    <item>
      <title>Unique value in short integer field</title>
      <link>https://community.esri.com/t5/developers-questions/unique-value-in-short-integer-field/m-p/21454#M133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know how to set up a short integer field so it will only accept a unique value?&amp;nbsp; I'm doing a tree inventory using Collector and need a unique number to identify each tree.&amp;nbsp; Maybe a "next available" number setup would work.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 02:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/unique-value-in-short-integer-field/m-p/21454#M133</guid>
      <dc:creator>JeffBaker2</dc:creator>
      <dc:date>2016-03-18T02:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unique value in short integer field</title>
      <link>https://community.esri.com/t5/developers-questions/unique-value-in-short-integer-field/m-p/21455#M134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all are you aware that the range for a signed short integer is between -32767 and 32767.&amp;nbsp; If this is adequate for job then the next series of question would be is how is this being used/inputed/stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not knowing specifics Two ways come to mind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Using the database/triggers/procedures create your own auto increment.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2. Programmatic means issue a query to yous data source max(yourfield) + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are mobile and disconnected from your data store that create other additional difficulties.&amp;nbsp; As an example I have Bridge Inspectors that go out and Identify Bridge Maintenance needs.&amp;nbsp; Each "Need" must be a unique number but I cannot tell or give the number out in the field.&amp;nbsp; So to get around this -- each mobile app (my case an excel spreadsheet) generates a "local" unique Identifier.&amp;nbsp; When the local data is submitted to me and after Q/A&amp;nbsp; I upload this data to the central repository - Part of my upload process generates the "Next" available unique number to the Need by programmatic means.&amp;nbsp; The Q/A'd application then assigns the local data the "official" Unique Value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will trigger some ideas to get you unstuck.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 16:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/unique-value-in-short-integer-field/m-p/21455#M134</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2016-03-18T16:53:20Z</dc:date>
    </item>
  </channel>
</rss>

