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:
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!
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.
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.
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
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++