Once, the relashionship is set.How can I test it make sure it works?How do I find RelationshipID?Thanks,Janusz
You need to add the tables/feature classes the relationships are based on to your map before publishing it..
What should I do to set Relationship ID?When I look through Services Directory rest point at may mapservice I do not see Relationshps: at all.
From 10 onward, it also provides information regarding the relationship of this layer / table with other layers / tables in the map service. A property to indicate whether the layer / table has attachments or not was also added at 10.
FeatureLayer l = new FeatureLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/0" }; l.Initialized += (s, e) => { int relationshipId = -1; foreach (var relationship in l.LayerInfo.Relationships) { relationshipId = relationship.RelatedTableId; break; } }; l.Initialize();
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.