<?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 How to use relationship to populate an infoTemplate/popupTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265901#M24548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set with columns&amp;nbsp; that include codes for provider type and specialty type.&amp;nbsp; These each have their own corresponding code description table, each containing the code as it appears in the data (10, 20, 30) , and then a column containing the description (hospital, clinic, ambulance).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set my infoTemplate up to use the description instead of the code in this scenario?&amp;nbsp; I set the service up to have a relate between the code columns and the description tables, but I'm having a hard time with the syntax.&amp;nbsp; I thought I could use a relationship to pull this information, but then I'm also reading about a relationshipQuery.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have little or no control over the content of any of these tables.&amp;nbsp;&amp;nbsp; I typically use a featureLayer with an infoTemplate.&amp;nbsp; I've looked into popupTemplates as well, but that seems to have an extra level of complexity I don't need.&amp;nbsp; Unless I must use a popupTemplate instead to use the syntax to get to the related table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ogitest.oa.mo.gov/arcgis/rest/services/DSS/medProvider/MapServer/0" title="https://ogitest.oa.mo.gov/arcgis/rest/services/DSS/medProvider/MapServer/0"&gt;https://ogitest.oa.mo.gov/arcgis/rest/services/DSS/medProvider/MapServer/0&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2015 20:09:13 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2015-05-18T20:09:13Z</dc:date>
    <item>
      <title>How to use relationship to populate an infoTemplate/popupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265901#M24548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set with columns&amp;nbsp; that include codes for provider type and specialty type.&amp;nbsp; These each have their own corresponding code description table, each containing the code as it appears in the data (10, 20, 30) , and then a column containing the description (hospital, clinic, ambulance).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I set my infoTemplate up to use the description instead of the code in this scenario?&amp;nbsp; I set the service up to have a relate between the code columns and the description tables, but I'm having a hard time with the syntax.&amp;nbsp; I thought I could use a relationship to pull this information, but then I'm also reading about a relationshipQuery.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have little or no control over the content of any of these tables.&amp;nbsp;&amp;nbsp; I typically use a featureLayer with an infoTemplate.&amp;nbsp; I've looked into popupTemplates as well, but that seems to have an extra level of complexity I don't need.&amp;nbsp; Unless I must use a popupTemplate instead to use the syntax to get to the related table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the service:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ogitest.oa.mo.gov/arcgis/rest/services/DSS/medProvider/MapServer/0" title="https://ogitest.oa.mo.gov/arcgis/rest/services/DSS/medProvider/MapServer/0"&gt;https://ogitest.oa.mo.gov/arcgis/rest/services/DSS/medProvider/MapServer/0&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 20:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265901#M24548</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-05-18T20:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use relationship to populate an infoTemplate/popupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265902#M24549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please clarify if my understanding is correct. You have a FeatureLayer which has 2 columns which are codes and 2 other tables which has the description for those codes. and you want to replace the codes with description in the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use a Query layer while creating the mapservice and control what is displayed in the map service. Hope this was helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 20:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265902#M24549</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2015-05-18T20:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use relationship to populate an infoTemplate/popupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265903#M24550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I suppose I could join to both these tables and author the service that way, but I was hoping for a solution where I didn't have to create all the joins.&amp;nbsp; It makes the field names much more complicated to deal with, and is a performance hit as well.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 20:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265903#M24550</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-05-18T20:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use relationship to populate an infoTemplate/popupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265904#M24551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; We are using Query layer in one of our projects and it works pretty good. it shouldn't cause much of a issue as it just couple of simple code and description, no complex calculations. If you feel the performance is still bad, you could create a Spatial view instead. As far as column names, you can always control them in the query or use alias names. this is a good solution if you do not want to do any coding in the client side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 20:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-use-relationship-to-populate-an/m-p/265904#M24551</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2015-05-18T20:49:12Z</dc:date>
    </item>
  </channel>
</rss>

