AnsweredAssumed Answered

How to use relationship to populate an infoTemplate/popupTemplate

Question asked by schlot on May 18, 2015
Latest reply on May 18, 2015 by thejus.kambi

I have a data set with columns  that include codes for provider type and specialty type.  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). 


How do I set my infoTemplate up to use the description instead of the code in this scenario?  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.  I thought I could use a relationship to pull this information, but then I'm also reading about a relationshipQuery. 


I have little or no control over the content of any of these tables.   I typically use a featureLayer with an infoTemplate.  I've looked into popupTemplates as well, but that seems to have an extra level of complexity I don't need.  Unless I must use a popupTemplate instead to use the syntax to get to the related table?


Here is the service: