Select to view content in your preferred language

Batch Update Feature Templates

520
4
10-05-2022 01:31 PM
TobeyKane-Seitz
New Contributor III

Hi all,

When using the stormwater UN foundation solution, I noticed that the default value for the spatialsource field, in the database and for the feature editing templates, is set to Unknown. I have an attribute rule written that populates the spatialsource field with the last value an editor used, but the default value of Unknown is overriding my attribute rule value when I create features using the editing template. I have changed the default value for spatialsource at the subtype and field level in the database, but the template when creating a feature still uses that default Unknown value.  I can get around this if I edit the template itself to remove the default value, but I have several other features with the same situation.

Essentially my question is:

  • Is there a way to have the editing template pull from the default field value in the database? (as set in the subtypes or fields)
  • OR, is there a way to batch update the editing templates? to remove the Unknown default value for the spatialsource field?

Otherwise, it seems I'll need to update the editing template for all features individually that use the last value attribute rule

Any help is appreciated!

0 Kudos
4 Replies
JohnBendix
New Contributor III

Do you have a field in an existing database with the spatial attribute you want by each feature.? 

Also yes your right even if you change the default field to what you want unless you update your Feature Template it will still default to your default value. Have you tried to create a new feature template and update the default values in the template properties?

John.

0 Kudos
TobeyKane-Seitz
New Contributor III

The spatialsource field will get populated once manually by the user and then will continue to be populated with that value by the attribute rule. I can create a new feature template with no default value set and then it works! But I have many features to do this for, so I was hoping to get the template to pull from the new default set in the database. 

0 Kudos
MikeMillerGIS
Esri Frequent Contributor

I typically export the map to mapx.  Then open it in Notepad and format as a json file.  The default values are stored in a property set, which is a format like the below.  You can select both lines, click Cntrl+H and replace with nothing.  

"Field",

Value

TobeyKane-Seitz
New Contributor III

Thanks for your reply! When I try this and re-open the map file, I'm still seeing default values of "Unknown" instead of the expected Null. Even though my search for 

spatialsource

"0" 

returns nothing in the file in Notepad++ 

0 Kudos