<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Relationship ID in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603633#M15478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS 9.3.x server. The company has not upgraded to 10.&amp;nbsp; So I will not be able to do this until I can have access to ArcGIS server 10? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Aug 2011 00:53:48 GMT</pubDate>
    <dc:creator>DavidKelly1</dc:creator>
    <dc:date>2011-08-27T00:53:48Z</dc:date>
    <item>
      <title>Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603629#M15474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to Silverlight.&amp;nbsp; I am trying to convert the live sample in the ArcGIS API for Silverlight to run with my data.&amp;nbsp; The sample I am using is the related records sample.&amp;nbsp; I need to have the relationship ID, it says to find it in the sertvice directory.&amp;nbsp; What does that mean? How&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 17:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603629#M15474</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2011-08-24T17:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603630#M15475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use FeatureLayer to determine relationshipId (see code below). If you go to the REST endpoint using your web browser go to the URL, you will find relationships section (see attached image).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
FeatureLayer l = new FeatureLayer() { Url = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/0" };
l.Initialized += (s, e) =&amp;gt;
{
 int relationshipId = -1;
 foreach (var relationship in l.LayerInfo.Relationships)
 {
&amp;nbsp; relationshipId = relationship.RelatedTableId;
&amp;nbsp; break;
 }
};
l.Initialize();
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603630#M15475</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603631#M15476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&amp;nbsp; I tried the code you sent and still did not get an value for the id. Is it possible that there is something wrong with the map service.&amp;nbsp; The map service was made from a single feature layer in ArcMap 9.3.1 with a relate that works to a table in a file geodatabase.&amp;nbsp; The map service displays correctly.&amp;nbsp; When the user clicks on one of the polygon features the form pops up with the correct fields and the expected value for the polygon that was clicked on.&amp;nbsp; When I click on that value I get an error message about cannot have a null value. Below is the section of code where the error occurs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //Relationship query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationshipParameter relationshipParameters = new RelationshipParameter()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjectIds = new int[] { Convert.ToInt32(g.Attributes[v_GIS_OPPTY_DETAIL.Tag as string]) },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields = new string[] { "OPPTY_NAME, STAGE_DESC_TEXT, IHS_COUNTRY_NAME, HESS_BASIN_ID, FIRST_NAME_TEXT,LAST_NAME_TEXT " },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationshipId = 0,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutSpatialReference = MyMap.SpatialReference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.ExecuteRelationshipQueryAsync(relationshipParameters);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any additional help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 11:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603631#M15476</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2011-08-26T11:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603632#M15477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the service you are hosting on a ArcGIS 9.3.x server. QueryRelatedRecords was not introduced until ArcGIS Server 10.0. You basically have to establish a sql relationship using ArcMap then publish the service to ArcGIS Server 10.x. When you browser to the REST endpoint the service will have defined what the relationshipIDs are you can use. you can then use the QueryRelatedRecords in the silverlight API to preform the relationship query.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2011 23:45:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603632#M15477</guid>
      <dc:creator>ChristopherHill</dc:creator>
      <dc:date>2011-08-26T23:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603633#M15478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using ArcGIS 9.3.x server. The company has not upgraded to 10.&amp;nbsp; So I will not be able to do this until I can have access to ArcGIS server 10? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 00:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603633#M15478</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2011-08-27T00:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603634#M15479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris is correct. ArcGIS Server 10.0 introduced relationship as I quote from SDK reference, which means your server will not have this information &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/layer.html"&gt;http://sampleserver3.arcgisonline.com/ArcGIS/SDK/REST/layer.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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. &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 01:50:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603634#M15479</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-08-27T01:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603635#M15480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris/Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David Kelly&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2011 10:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603635#M15480</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2011-08-27T10:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603636#M15481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris/Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out the company has Server 10 running on one of its other servers so I was able to get the map service published using Server 10.&amp;nbsp; I still get the same error message.&amp;nbsp; Any idea was is causing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 19:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603636#M15481</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2011-08-29T19:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603637#M15482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris/Jennifer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I included some screenshots.&amp;nbsp; The map service using Server 10 was created from a single layer with a relate to a table.&amp;nbsp; Does something else have to be done before I can use the relate feature service the way it is used in the query relate sample on the website? It looks to me like there is not a relationship ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 20:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603637#M15482</guid>
      <dc:creator>DavidKelly1</dc:creator>
      <dc:date>2011-08-29T20:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603638#M15483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What should I do to set Relationship ID?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I look through Services Directory rest point at may mapservice I do not see Relationshps: at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 22:20:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603638#M15483</guid>
      <dc:creator>januszkrawczynski</dc:creator>
      <dc:date>2013-04-02T22:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603639#M15484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What should I do to set Relationship ID?&lt;BR /&gt;When I look through Services Directory rest point at may mapservice I do not see Relationshps: at all.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to add the tables/feature classes the relationships are based on to your map before publishing it..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 06:54:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603639#M15484</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2013-04-04T06:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603640#M15485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You need to add the tables/feature classes the relationships are based on to your map before publishing it..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once, the relashionship is set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I test it make sure it works?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I find RelationshipID?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janusz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 16:03:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603640#M15485</guid>
      <dc:creator>januszkrawczynski</dc:creator>
      <dc:date>2013-04-11T16:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603641#M15486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Once, the relashionship is set.&lt;BR /&gt;How can I test it make sure it works?&lt;BR /&gt;How do I find RelationshipID?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Janusz&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You can send a request to the feature service end point. You should see the relationships ID defined for the service: &lt;/SPAN&gt;&lt;A href="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSPetro/MapServer/0"&gt;example&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 05:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603641#M15486</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2013-04-16T05:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Relationship ID</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603642#M15487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janusz&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 18:34:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/relationship-id/m-p/603642#M15487</guid>
      <dc:creator>januszkrawczynski</dc:creator>
      <dc:date>2013-04-17T18:34:28Z</dc:date>
    </item>
  </channel>
</rss>

