Hello,
Im wondering if theres a way to get a custom value as response when u add a new feature in a layer?, cuz the value i can get is the objectid that is not always autoinc and correlative.
The thing is i want to get some custom value that i define to the service when add, like an unique and alphanumeric ID that i made for it cuz the objectid as a return to me now its a little bit useless on the logic that i want to have in my app.
Solved! Go to Solution.
Evelyn,
You can use before-apply-edits to assign a guid or some other unique value to a field in your layer.
Ok, but that is something that i need to handle through code and its something that i would prefer that the db server do it for me, same like the objectid that it returns. It is like theres no way to set some config on the layer where im adding that return a AI value defined by me as a response instead the objectid?
Evelyn,
I am sure you can accomplish that using a DB trigger but that is a question for the https://community.esri.com/community/gis/managing-data?sr=search&searchId=3859a9f8-1b0b-4a5b-89c4-1f... space or https://community.esri.com/groups/geodatabase?sr=search&searchId=df6e74e3-ba29-4419-a79e-712a3f0f356...
See if these links help:
Add Incrementing ID Field—Help | ArcGIS for Desktop
More GeoNet Posts:
Auto-Increment Field within SDE
https://community.esri.com/thread/181774-how-is-auto-increment-supposed-to-work
I have another question about objectid field.
I know this field is able to handle 2.147.483.647 of storage, so my question is, when u use all of them, what will happen? how arcgis handle this?