AnsweredAssumed Answered

Return all Fields in PopupTemplate

Question asked by Steaks on Sep 27, 2011
Latest reply on Aug 15, 2018 by ceccarto1
Is there a way to return all the attributes for a PopupTemplate without declaring all of them in the fieldInfos object?  For a InfoTemplate all you have to do is this to return every attribute.

var template=new esri.InfoTemplate("My Title","${*}");

I've tried a bunch of different ways and the closest I came up with is:

var template=new esri.dijit.PopupTemplate({
  title: result.layerName,
  fieldInfos: [{ fieldName: "*",visible: true}]

The problem with that is there is only 1 returned key/value pair.  The key is the asterisk and the single value is all of the results grouped together.