Custom value when adds

1276
6
Jump to solution
10-20-2016 06:00 AM
EvelynHernandez
Occasional Contributor III

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.

0 Kudos
1 Solution

Accepted Solutions
6 Replies
RobertScheitlin__GISP
MVP Emeritus

Evelyn,

   You can use before-apply-edits to assign a guid or some other unique value to a field in your layer.

0 Kudos
EvelynHernandez
Occasional Contributor III

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?

0 Kudos
EvelynHernandez
Occasional Contributor III

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?

0 Kudos
Asrujit_SenGupta
MVP Regular Contributor