<?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: Add Field (small integer) in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416622#M58945</link>
    <description>&lt;P&gt;If I need to add a small integer field to a service, I usually do so using the REST services directory's admin page.&amp;nbsp; In case you haven't used this before, you can do this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the service's item page, look for the "URL" section in the lower right and click the launch button.&amp;nbsp; This should open a simple HTML page with a title of "Your_Service_Name (FeatureServer)".&lt;/LI&gt;&lt;LI&gt;Under the Layers list, click the layer you want to add the field to, this will open a new page.&lt;/LI&gt;&lt;LI&gt;From here, click the Admin link in the upper right.&amp;nbsp; This will open a new page with a different-coloured header.&lt;/LI&gt;&lt;LI&gt;From here, click on the Add to Definition link at the bottom this will give you a new page with a large text box that has a bunch of JSON in it.&lt;/LI&gt;&lt;LI&gt;"Select all" on the text box's contents and delete it.&lt;/LI&gt;&lt;LI&gt;Enter something like this (replacing names and aliases as necessary) and click the "Add to Layer Definition" at the bottom:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;{"fields": [{
  "name" : "MyNewField", 
  "type" : "esriFieldTypeSmallInteger", 
  "alias": "My New Field",
  "nullable": true, 
  "editable" : true, 
  "visible" : true
}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should get a page saying the operation was successful and your new field should be on the layer.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 16:59:28 GMT</pubDate>
    <dc:creator>MobiusSnake</dc:creator>
    <dc:date>2024-04-29T16:59:28Z</dc:date>
    <item>
      <title>Add Field (small integer)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416613#M58942</link>
      <description>&lt;P&gt;When I look at my existing fields, I have a couple with the type as "Small Integer"&lt;/P&gt;&lt;P&gt;However when I try to add a new field it does not give me the option for a "Small Integer". I see "Big Integer" and regular "Integer"&lt;/P&gt;&lt;P&gt;I can work around this by making the changes locally and republishing, but I am hoping that there is a simpler way to do it directly online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: the solution says to drill down into the layer before clicking on Admin. I had to do it the other way around because Admin would disappear when I had clicked on the layer name. But it did work in the end!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 16:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416613#M58942</guid>
      <dc:creator>CarsonMorton</dc:creator>
      <dc:date>2024-05-06T16:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add Field (small integer)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416622#M58945</link>
      <description>&lt;P&gt;If I need to add a small integer field to a service, I usually do so using the REST services directory's admin page.&amp;nbsp; In case you haven't used this before, you can do this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the service's item page, look for the "URL" section in the lower right and click the launch button.&amp;nbsp; This should open a simple HTML page with a title of "Your_Service_Name (FeatureServer)".&lt;/LI&gt;&lt;LI&gt;Under the Layers list, click the layer you want to add the field to, this will open a new page.&lt;/LI&gt;&lt;LI&gt;From here, click the Admin link in the upper right.&amp;nbsp; This will open a new page with a different-coloured header.&lt;/LI&gt;&lt;LI&gt;From here, click on the Add to Definition link at the bottom this will give you a new page with a large text box that has a bunch of JSON in it.&lt;/LI&gt;&lt;LI&gt;"Select all" on the text box's contents and delete it.&lt;/LI&gt;&lt;LI&gt;Enter something like this (replacing names and aliases as necessary) and click the "Add to Layer Definition" at the bottom:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="javascript"&gt;{"fields": [{
  "name" : "MyNewField", 
  "type" : "esriFieldTypeSmallInteger", 
  "alias": "My New Field",
  "nullable": true, 
  "editable" : true, 
  "visible" : true
}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should get a page saying the operation was successful and your new field should be on the layer.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 16:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416622#M58945</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2024-04-29T16:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add Field (small integer)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416676#M58950</link>
      <description>&lt;P&gt;I may have deviated slightly, here is how and why:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There was no URL in "My_Layer - Service Definition", so I went to&amp;nbsp;"My_Layer - Feature Layer (hosted)" instead. Clicking "View" on the URL did take me to the "My_Layer (FeatureServer)" page.&lt;/LI&gt;&lt;LI&gt;I didn't go into the Layers list because this is the layer I want. (no sublayers) and the Admin link was already in the top right.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Everything else seemed correct, but it didn't seem to work. unless it takes a while to propagate the change?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 18:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416676#M58950</guid>
      <dc:creator>CarsonMorton</dc:creator>
      <dc:date>2024-04-29T18:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add Field (small integer)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416755#M58953</link>
      <description>&lt;P&gt;The change should be immediate, no time to propagate.&lt;/P&gt;&lt;P&gt;There are two "Add to Definition" pages, one that is used to modify the service and one that's used to modify a specific layer or table within the service.&amp;nbsp; It sounds like you got the wrong one; the service-level one would be used to do something like add a new sublayer or table to the service (you can do all sorts of cool things through these interfaces that you can't do through the standard web interface), whereas the layer/table-level one is what you need to call to add a field or an index.&amp;nbsp; If you tried to add a field at the service level, I expect nothing would happen but it wouldn't give you an error, either.&lt;/P&gt;&lt;P&gt;If your service only consists of one layer, you should still go down to the sublayer page; otherwise you're working with the service and not a layer.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 21:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1416755#M58953</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2024-04-29T21:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add Field (small integer)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1419492#M59064</link>
      <description>&lt;P&gt;Finally got back to this.&lt;/P&gt;&lt;P&gt;What threw me off was that I had to click admin before clicking on the layer. If I clicked the layer first, then the Admin link would disappear.&lt;/P&gt;&lt;P&gt;So it worked. Thanks!&lt;/P&gt;&lt;P&gt;Also now I have to dig into this REST stuff and see what other nifty tricks can be done with it!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 16:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/add-field-small-integer/m-p/1419492#M59064</guid>
      <dc:creator>CarsonMorton</dc:creator>
      <dc:date>2024-05-06T16:40:43Z</dc:date>
    </item>
  </channel>
</rss>

