How to Edit Feature Class that contain a query definition

4140
4
01-26-2015 09:19 PM
MostafaAtir1
New Contributor

Hi,

 

I am trying to edit a feature class that contains a definition query, but in Create features toolbar I can not get my feature class in order to add a new feature. I already used Organize Template to add a new template for editing but I can not have this feature class in the Create Features toolbar. So, if I remove the query definition from this feature class it appears automatically without any problem.

 

Thanks,

Mostafa Atir

0 Kudos
4 Replies
NeilAyres
MVP Frequent Contributor

As far as I recall you can't edit a layer with a query definition applied.

If you have various categories of data you can apply that symbology and edit them individually quite nicely.

If you only want to see one of your categories, just remove those categories from the symbolgy editor.

0 Kudos
BenGrod
Regular Contributor

Mostafa, I agree with Neil that Esri did not design the new editing workflow to allow for easily editing a feature class with a definition query defined but like many things with Esri they did provide a work around. These steps are almost more time consuming then dropping the def query, editing the feature, then adding the def query back. But sometimes you don't want to drop the def query so here are the steps.

Begin an edit session, open Create Features, select Organize Templates. In the Organize Features window double click on your feature to open the Template Properties window. In the Template Properties apply the definition query values to the correct field (all fields should be currently <Null>). Once the value is set the template will now be available in the Create Features window. Continue to edit. Sorry for the lengthy reply, hope this is helpful.

0 Kudos
BenGrod
Regular Contributor

Mostafa, here's a screen shot of the Template Properties window where you apply the definition query value to the field (highlighted in red).

Template Properties.png

MostafaAtir1
New Contributor

Thanks to Neil & Ben Grod for your help...

Mostafa

0 Kudos