<?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: I have a feature class and related table both have relation ship, but when i retrieve data from related table i get RelationshipQuery.js:5 Uncaught TypeError: c.join is not a function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110201#M10218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your code... I think this line has the issue:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;relatedReviews.objectIds=feature.attributes.OBJECTID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;RelationshipQuery.objectIds expects an array of numbers:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-RelationshipQuery.html#objectIds" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-RelationshipQuery.html#objectIds"&gt;RelationshipQuery | API Reference | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So please try changing the line to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;SPAN&gt;relatedReviews.objectIds = [feature.attributes.OBJECTID];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;here is a very simple sample that works:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/tugopojawa/edit?html,output" title="https://jsbin.com/tugopojawa/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 21:54:04 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2017-01-26T21:54:04Z</dc:date>
    <item>
      <title>I have a feature class and related table both have relation ship, but when i retrieve data from related table i get RelationshipQuery.js:5 Uncaught TypeError: c.join is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110200#M10217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using arcgis javascript 4.1 api.I have a feature class and related table both have relation ship, but when i retrieve data from related table i got&lt;/P&gt;&lt;P&gt;the following error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RelationshipQuery.js:5 Uncaught TypeError: c.join is not a function&lt;BR /&gt; at Object.toJSON (RelationshipQuery.js:5)&lt;BR /&gt; at Object.executeRelationshipQuery (init.js:2096)&lt;BR /&gt; at showRestaurant (Bestaurant11.html:244)&lt;BR /&gt; at HTMLAnchorElement.onclick (VM2846 Bestaurant11.html:1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is some portion of&amp;nbsp;the code&lt;/P&gt;&lt;P&gt;var &amp;nbsp;relatedReviews =new RelationshipQuery();&lt;/P&gt;&lt;P&gt;relatedReviews.outFields=["*"]; &lt;BR /&gt; &lt;BR /&gt; relatedReviews.relationshipId =0;&lt;BR /&gt; relatedReviews.objectIds=feature.attributes.OBJECTID;&lt;BR /&gt; &lt;BR /&gt; queryTask.executeRelationshipQuery(relatedReviews).then(function(relatedRecord){&lt;BR /&gt; &lt;BR /&gt;...................&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me how can i solve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110200#M10217</guid>
      <dc:creator>DayanidhiKhanda</dc:creator>
      <dc:date>2017-01-26T19:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have a feature class and related table both have relation ship, but when i retrieve data from related table i get RelationshipQuery.js:5 Uncaught TypeError: c.join is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110201#M10218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at your code... I think this line has the issue:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;relatedReviews.objectIds=feature.attributes.OBJECTID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;RelationshipQuery.objectIds expects an array of numbers:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-RelationshipQuery.html#objectIds" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-RelationshipQuery.html#objectIds"&gt;RelationshipQuery | API Reference | ArcGIS API for JavaScript 4.2&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So please try changing the line to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;SPAN&gt;relatedReviews.objectIds = [feature.attributes.OBJECTID];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;here is a very simple sample that works:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/tugopojawa/edit?html,output" title="https://jsbin.com/tugopojawa/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:54:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110201#M10218</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2017-01-26T21:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: I have a feature class and related table both have relation ship, but when i retrieve data from related table i get RelationshipQuery.js:5 Uncaught TypeError: c.join is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110202#M10219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;thanks for give me time. and for small mistake i spend a lot time for this.&lt;/P&gt;&lt;P&gt;and i correct my code as per you mentioned above&lt;/P&gt;&lt;P&gt;and it Works .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 09:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-have-a-feature-class-and-related-table-both-have/m-p/110202#M10219</guid>
      <dc:creator>DayanidhiKhanda</dc:creator>
      <dc:date>2017-01-27T09:59:49Z</dc:date>
    </item>
  </channel>
</rss>

