2. All of the examples of using fieldInfos to define the content show the label as hard-coded. I realize the examples have to be kept simple but hard-coding the labels is not practical in my situation. I have dozens of layers, each with 50 or more attributes. I need to dynamically create the content for the popup.
I see the query tasks being executed when I click on a feature and I see the fieldAlias object being returned. I just don't know how to access it within the popup template configuration.
Any help is greatly appreciated.