AnsweredAssumed Answered

Show attachments in InfoTemplate for jQuery Mobile

Question asked by Mr_Kirkwood on Mar 31, 2015
Latest reply on Mar 31, 2015 by Yusufamro

How do you get the attachments to show in the InfoWindow for this example? I can see them when you create a point, but when you identify the point it is not there.

 

https://developers.arcgis.com/javascript/jssamples/mobile_citizenrequest.html

 

 

If the code is modified on line 693 to  "showAttachments": true, then the window when collecting a point looks like this:

 

Capture.JPG

 

I would like the Attachments to show up in the identify window as well.

 

The template is being created by this code:

 

var featureLayerInfoTemplate = new InfoTemplate();
                        featureLayerInfoTemplate.setTitle("<b>Secies Type: ${SpeciesType:speciesDomainLookup}</b>");
                        var infoTemplateContent = 
                                "<span class=\"infoTemplateContentRowLabel\">Date: </span><span class=\"infoTemplateContentRowItem\">${sampDate:DateFormat}</span><br>" +
                                "<span class=\"infoTemplateContentRowLabel\">Species Type: </span><span class=\"infoTemplateContentRowItem\">${SpeciesType:speciesDomainLookup}</span><br>" +
                                "<span class=\"infoTemplateContentRowLabel\">Common Name: </span><span class=\"infoTemplateContentRowItem\">${commonName:commonNameDomainLookup}</span><br>" +
                                "<span class=\"infoTemplateContentRowLabel\">Phenology: </span><span class=\"infoTemplateContentRowItem\">${plantPhenology:phenologyDomainLookup}</span><br>" +\

                                "<span class=\"infoTemplateContentRowLabel\">Habitat: </span><span class=\"infoTemplateContentRowItem\">${Habitat:habitatDomainLookup}</span><br>" +
                                "<span class=\"infoTemplateContentRowLabel\">Weather: </span><span class=\"infoTemplateContentRowItem\">${Weather:weatherTypeDomainLookup}</span><br>" +
                                "<span class=\"infoTemplateContentRowLabel\">Is Sensitive?: </span><span class=\"infoTemplateContentRowItem\">${IsSensitive:sensitiveTypeDomainLookup}</span>";
                        featureLayerInfoTemplate.setContent(infoTemplateContent);

That code does not specify whether or not attachments are visible. I want to be able to see the attachment manager in that window.

Outcomes