Select to view content in your preferred language

Creating M-N Relationships

3555
3
10-25-2011 07:52 AM
rbae
by
Regular Contributor
I have 2 tables exposed through a Feature Service tha has a M-N relationship.   Assuming that I have a Graphic object from each table, is it possible to create a relationship between the two?

Thanks for your help!

-Ryan
0 Kudos
3 Replies
JenniferNery
Esri Regular Contributor
0 Kudos
rbae
by
Regular Contributor
Hi Jennifer,

If I understand these posts correctly, they are for reading/querying relationship classes and not actually creating relationships?

Please let me know if I'm missing something.

Thanks,

-Ryan
0 Kudos
JenniferNery
Esri Regular Contributor
Your tables can be represented as FeatureLayer, where Graphic.Attributes represent the row in the table. This feature service for example are related by an attribute "sf_311_serviceoid" (i.e. "2547813"): http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer. To relate graphics then, you can update their attribute value. But you need to know which attribute connects the two tables.
0 Kudos