<?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 Re: Popup with attachements outside map view in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484526#M84794</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp; thanks for your guidance... much appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 16:36:19 GMT</pubDate>
    <dc:creator>kapalczynski</dc:creator>
    <dc:date>2024-06-04T16:36:19Z</dc:date>
    <item>
      <title>Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483445#M84774</link>
      <description>&lt;P&gt;Looking for help on displaying my popup attributes and attachments in a DIV outside the map view.&amp;nbsp; Anyone have any examples?&lt;/P&gt;&lt;P&gt;I am not looking for a dock solution rather a div below my map div that can display the results when the user clicks on the feature in the map.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 18:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483445#M84774</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-03T18:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483464#M84777</link>
      <description>&lt;P&gt;Take a look a the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Feature.html" target="_self"&gt;Feature&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features.html" target="_self"&gt;Features&lt;/A&gt; widgets. (Two slightly different widgets with very similar names.) They are built as popup replacements that can be placed outside the map.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 19:13:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483464#M84777</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-06-03T19:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483470#M84778</link>
      <description>&lt;P&gt;I can create the div like this BUT just dont know how to pass the popup info into this green div... Green just so I can see it for development&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;div style="float: left; width: 70%; height: 600px;"&amp;gt;
     &amp;lt;div id="applicationView" class="applicationMapStyle"&amp;gt;&amp;lt;/div&amp;gt;
     &amp;lt;div id="applicationView2" class="applicationMapStyle2"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kapalczynski_0-1717442296621.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106042i34BE086C43335116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kapalczynski_0-1717442296621.png" alt="kapalczynski_0-1717442296621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 19:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483470#M84778</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-03T19:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483481#M84779</link>
      <description>&lt;LI-CODE lang="javascript"&gt;// Create a new instance of Features and set the view property
// to the View along with the container that holds the widget
// such as a Calcite Shell Panel.
const featuresWidget = new Features({
  view: view,
  container: "features-widget"
});

// Use reactiveUtils to watch for when the view has a click event
// then open the Features widget in its respective container.
reactiveUtils.on(()=&amp;gt; view, "click",
(event)=&amp;gt;{
  featuresWidget.open({
    location: event.mapPoint,
    fetchFeatures: true
  })
});&lt;/LI-CODE&gt;&lt;P&gt;This is an example from the Features widget page. Make the value for container the id of the div you want the popup in.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 19:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483481#M84779</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-06-03T19:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483649#M84780</link>
      <description>&lt;P&gt;This seems to be working great... But is there anyway the new popup can show attachments? I am trying the Features Widget&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Shows me 51 features and works great but why are their no attachments being displayed???&amp;nbsp; I really hope that ESRI didn't fall short again and not think a user would like to see the attachments like a typical popup...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kapalczynski_0-1717455457221.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106059i2EE6C6F808A138D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kapalczynski_0-1717455457221.png" alt="kapalczynski_0-1717455457221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;.applicationMapStyle {
    width: 70%;
    height: 500px;
    background-color: darkgray;
}
.calcite-match-height {
    width: 70%;
    height: 500px;
    background-color: darkgray;
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;div style="float: right; width: 70%; height: 1000px;"&amp;gt;
     &amp;lt;div id="applicationView" class="applicationMapStyle"&amp;gt;&amp;lt;/div&amp;gt;
     &amp;lt;div id="features-widget" class="calcite-match-height"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;        // Create a new instance of the Features widget and set
        // it's container to a div residing in a shell panel.
        const featuresWidget = new Features({
          container: "features-widget",
          viewModel: {
            // Add a custom action to the widget that will open a
            // website when it's selected.
            actions: [
              {
                type: "button",
                title: "Visitation Highlights (2022)",
                id: "more-info",
                icon: "information-letter"
              }
            ],
            view: view
          }
        });

        // Open the Features widget with features fetched from
        // the view click event location.
        reactiveUtils.on(
          () =&amp;gt; view,
          "click",
          (event) =&amp;gt; {
            featuresWidget.open({
              location: event.mapPoint,
              fetchFeatures: true
            });
          }
        );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 22:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1483649#M84780</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-03T22:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484241#M84784</link>
      <description>&lt;P&gt;You can alter the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#content" target="_self"&gt;PopupTemplate&lt;/A&gt; to contain &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-popup-content-AttachmentsContent.html" target="_self"&gt;Attachments&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 12:45:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484241#M84784</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-06-04T12:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484292#M84786</link>
      <description>&lt;P&gt;I am trying something like this and no attachments are coming forward in the popup..&lt;/P&gt;&lt;P&gt;I can get the popup to work like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;                // Create the PopupTemplate
                let template = new PopupTemplate({
                    title: "Testing",
                    outFields: ["*"],
                    content: [
                        {
                            type: "fields", // Autocasts as new FieldsContent()
                            // Autocasts as new FieldInfo[]
                            fieldInfos: [
                                {
                                    fieldName: "APPLICATIONNUMBER",
                                    label: "Application Number",
                                    format: {
                                        digitSeparator: false
                                    }
                                },
                                {
                                    fieldName: "DISTRICT"
                                }]
                        }],

                });

                var layer = new FeatureLayer({
                    url: gisinputs.service,
                    popupEnabled: true,
                    outFields: ["*"],
                    popupTemplate: template
                });
                layer.title = "GIS SIGN INSPECTION";&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT there are no Attachments... I tried this to get the attachments but again no attachments...&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;ANY THOUGHTS?&lt;/P&gt;&lt;LI-CODE lang="c"&gt;                let attachmentsElement = new AttachmentsContent({
                    displayType: "list" // this will show all attachments as a list of linked files
                });

                //// Create the PopupTemplate
                let template = new PopupTemplate({
                    title: "Testing",
                    outFields: ["*"],
                    content: [attachmentsElement]
                });

                var layer = new FeatureLayer({
                    url: gisinputs.service,
                    popupEnabled: true,
                    outFields: ["*"],
                    popupTemplate: template
                });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 13:29:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484292#M84786</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-04T13:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484402#M84788</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp;&amp;nbsp; you have any suggestions to why its not working.. See my example of trying to add Attachments...&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would it look like having field Info and attributes AND the attachments in the template config&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484402#M84788</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-04T15:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484460#M84791</link>
      <description>&lt;P&gt;OK so I changed it from LIST to PREVIEW and they started showing up... confused... then moved it back to LIST and it still worked... really weird...&amp;nbsp;&lt;/P&gt;&lt;P&gt;My LAST question is how to combine the popup to show attributes and the images...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;                let attachmentsElement = new AttachmentsContent({
                    displayType: "list" // this will show all attachments as a list of linked files
                });

                // Create the PopupTemplate
                let template = new PopupTemplate({
                    title: "Testing",
                    outFields: ["*"],
                    content: [attachmentsElement]
                });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to add the "attachmentsElement" to the below popup Template&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;                let template = new PopupTemplate({
                    title: "Testing",
                    outFields: ["*"],
                    content: [
                        {
                            type: "fields", // Autocasts as new FieldsContent()
                            // Autocasts as new FieldInfo[]
                            fieldInfos: [
                                {
                                    fieldName: "APPLICATIONNUMBER",
                                    label: "Application Number",
                                    format: {
                                        digitSeparator: false
                                    }
                                },
                                {
                                    fieldName: "DISTRICT"
                                }]
                        }],
                });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484460#M84791</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-04T15:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484473#M84792</link>
      <description>&lt;P&gt;DO I need a MEDIA tag or something... just cant figure out how to combine the attachmentsElement and the fieldInfos into one popup template&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484473#M84792</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-04T15:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484474#M84793</link>
      <description>&lt;P&gt;Content is an array so you can have multiple types of content in a single popup.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let template = new PopupTemplate({
                    title: "Testing",
                    outFields: ["*"],
                    content: [
                        {
                            type: "fields", // Autocasts as new FieldsContent()
                            // Autocasts as new FieldInfo[]
                            fieldInfos: [
                                {
                                    fieldName: "APPLICATIONNUMBER",
                                    label: "Application Number",
                                    format: {
                                        digitSeparator: false
                                    }
                                },
                                {
                                    fieldName: "DISTRICT"
                                }]
                        }, attachmentsElement],
                });&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jun 2024 15:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484474#M84793</guid>
      <dc:creator>JeffreyThompson2</dc:creator>
      <dc:date>2024-06-04T15:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Popup with attachements outside map view</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484526#M84794</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/677423"&gt;@JeffreyThompson2&lt;/a&gt;&amp;nbsp; thanks for your guidance... much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 16:36:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-with-attachements-outside-map-view/m-p/1484526#M84794</guid>
      <dc:creator>kapalczynski</dc:creator>
      <dc:date>2024-06-04T16:36:19Z</dc:date>
    </item>
  </channel>
</rss>

