<?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: View attachments as hyperlink in popups in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763165#M19467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I suppose the problem I'm having is that the Identify widget/tool doesn't work on Feature Layers (they have to be just a dynamic service layer). So, I can't use FeatureService stuff if I want the layers to be identifiable. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can Just Query the REST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Attachment info for a feature (featureId 1) in a dynamic layer (existing map service layer with id 3):&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://myServer/arcgis/rest/services/Census/MapServer/dynamicLayer/1/attachments?layer=" rel="nofollow" target="_blank"&gt;http://myServer/arcgis/rest/services/Census/MapServer/dynamicLayer/1/attachments?layer=&lt;/A&gt;&lt;SPAN&gt;{"id":101,"source":{"type":"mapLayer","mapLayerId":3}}&amp;amp;where=1=1&amp;amp;f=pjson &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information check the following link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_attachmentinfos.html"&gt;http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_attachmentinfos.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 09:20:49 GMT</pubDate>
    <dc:creator>AhmedEl-Sisi</dc:creator>
    <dc:date>2014-04-02T09:20:49Z</dc:date>
    <item>
      <title>View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763157#M19459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I consider myself a non-devloper/programmer so the Silverlight Viewer is a big help in getting applications up and running.&amp;nbsp; I'd like to know, does anyone have any suggestions on how I could go about getting feature attachments to display as a hyperlink in the popups.&amp;nbsp; I'd like to emulate the way this works in ArcMap and ArcGIS Online instead of having to use the view attachments button.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 17:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763157#M19459</guid>
      <dc:creator>JamesFournier</dc:creator>
      <dc:date>2011-12-27T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763158#M19460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar question except I want a link to show up in the identify results window using the Silverlight API. I figured out how to create a link for one attachment, but not for more than one attachment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added a hyperlink button to the bottom of the identify results window and, in the c# code, pulled the first data value (object ID) from the selected feature in the comboBox and added that to the hyperlink uri. The attachment ID seemed to match the feature object ID. However, I am not sure how the attachment ID for the second one is generated so I am not able to create a link to it. I'm trying to access the feature attachment infos property, but I am not sure how to do so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I hope that this gives you a little more info on how one might go about it. I'm not very familiar with the Viewer though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attachment editor would be great except we don't want users to be able to add or delete attachments. Plus having a link in the identify results window would be more user friendly in our case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michelle&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 17:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763158#M19460</guid>
      <dc:creator>MichelleThompson1</dc:creator>
      <dc:date>2011-12-29T17:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763159#M19461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've set-up a hyperlink base in ArcMap and want to be able to view hyperlinks using a tool much the same as in ArcMap. Is there the option to add a hyperlink tool in Sliverlight 3.1? Because the full path is not in the attribute field, I can't access the hyperlink from the attribute table only from the hyperlink tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 04:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763159#M19461</guid>
      <dc:creator>ChrisGraves1</dc:creator>
      <dc:date>2013-11-20T04:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763160#M19462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are displaying your results in a datagrid you can create a template column to properly format your hyperlink and build the first part of the url to your file.&amp;nbsp; For example if in your attribute table you are only storing the attachment file name, file.pdf for example, you could create a template column in your xaml like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;UserControl.Resources&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate x:Key="DocSource"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;HyperlinkButton Foreground="White" NavigateUri="{Binding Attributes[source_doc], StringFormat=http://www.YourSite/SourceDocs/\{0\}}" Content="{Binding Attributes[source_doc]}" TargetName="_blank" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;
&amp;lt;/UserControl.Resources&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then in your QueryTask_ExecuteCompleted you would build the datagrid columns at runtime, rather than before hand.&amp;nbsp; As you loop through the featureset to generate your columns you listen for the field source_doc.&amp;nbsp; When you get to that column you generate the column using the DataTemplate above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteCompleted Code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
if (featureSet != null &amp;amp;&amp;amp; featureSet.Features.Count &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; int rec = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var feature in featureSet.Features)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.Attributes["Rec"] = ++rec;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;string&amp;gt; fields = new List&amp;lt;string&amp;gt;();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //generate the first column for record index
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGridTextColumn dataGridTextColumnRec = new DataGridTextColumn();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Binding Recbinder = new Binding();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recbinder.Path = new PropertyPath("Attributes[Rec]");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGridTextColumnRec.Header = "Rec";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Recbinder.Mode = BindingMode.OneWay;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGridTextColumnRec.Binding = Recbinder;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueryDetailsDataGrid.Columns.Add(dataGridTextColumnRec);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //generate the other columns
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var item in featureSet.FieldAliases)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (item.Value == "source_doc") //Create a hyperlink column for document link
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGridTemplateColumn templateColumn = new DataGridTemplateColumn();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateColumn.Header = "Source Doc";
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateColumn.CellTemplate = (DataTemplate)Resources["DocSource"];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueryDetailsDataGrid.Columns.Add(templateColumn);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGridTextColumn dataGridTextColumn = new DataGridTextColumn();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Binding binder = new Binding();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fields.Add(item.Value);&amp;nbsp;&amp;nbsp; //FieldAliases is a Dictionary, the field name being the key and the field alias being the value.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binder.Path = new PropertyPath("Attributes[" + item.Key + "]");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGridTextColumn.Header = item.Value;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; binder.Mode = BindingMode.TwoWay ;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataGridTextColumn.Binding = binder;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QueryDetailsDataGrid.Columns.Add(dataGridTextColumn);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (Graphic feature in featureSet.Features)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.Symbol = LayoutRoot.Resources["DefaultResultLineSymbol"] as LineSymbol;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selectionGraphicslayer.Graphics.Insert(0, feature);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create as many data templates as you need, then add another if statement to listen for them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:26:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763160#M19462</guid>
      <dc:creator>BobNichols</dc:creator>
      <dc:date>2021-12-12T08:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763161#M19463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a similar question except I want a link to show up in the identify results window using the Silverlight API. I figured out how to create a link for one attachment, but not for more than one attachment. &lt;BR /&gt;&lt;BR /&gt;I added a hyperlink button to the bottom of the identify results window and, in the c# code, pulled the first data value (object ID) from the selected feature in the comboBox and added that to the hyperlink uri. The attachment ID seemed to match the feature object ID. However, I am not sure how the attachment ID for the second one is generated so I am not able to create a link to it. I'm trying to access the feature attachment infos property, but I am not sure how to do so.&lt;BR /&gt;&lt;BR /&gt;Anyway, I hope that this gives you a little more info on how one might go about it. I'm not very familiar with the Viewer though.&lt;BR /&gt;&lt;BR /&gt;The attachment editor would be great except we don't want users to be able to add or delete attachments. Plus having a link in the identify results window would be more user friendly in our case.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Michelle&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michelle,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you ever find a solution to this? I'm looking to do something similar and have tried a few things with no luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 18:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763161#M19463</guid>
      <dc:creator>JennB</dc:creator>
      <dc:date>2014-03-28T18:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763163#M19465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Use &lt;A href=" http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~QueryAttachmentInfos.html" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer::QueryAttachmentInfos&lt;/A&gt; to get list of attachments then bind it to ItemsControl contains hyperlink or whatever you want.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; featureLayer.QueryAttachmentInfos(selectedGraphic, (Action&amp;lt;IEnumerable&amp;lt;ESRI.ArcGIS.Client.FeatureService.AttachmentInfo&amp;gt;&amp;gt;)QueryAttachmentInfosCallback,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Action&amp;lt;Exception&amp;gt;)delegate(Exception ex) { MessageBox.Show(ex.ToString());});

&amp;nbsp; private void QueryAttachmentInfosCallback(IEnumerable&amp;lt;ESRI.ArcGIS.Client.FeatureService.AttachmentInfo&amp;gt; attachments)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Bind to Itemscontrol
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose the problem I'm having is that the Identify widget/tool doesn't work on Feature Layers (they have to be just a dynamic service layer). So, I can't use FeatureService stuff if I want the layers to be identifiable. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763163#M19465</guid>
      <dc:creator>JennB</dc:creator>
      <dc:date>2021-12-12T08:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763164#M19466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A simple no code necessary method we implemented uses a virtual directory and http link in the feature.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 17:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763164#M19466</guid>
      <dc:creator>brettangel</dc:creator>
      <dc:date>2014-03-31T17:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763165#M19467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I suppose the problem I'm having is that the Identify widget/tool doesn't work on Feature Layers (they have to be just a dynamic service layer). So, I can't use FeatureService stuff if I want the layers to be identifiable. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can Just Query the REST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Attachment info for a feature (featureId 1) in a dynamic layer (existing map service layer with id 3):&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://myServer/arcgis/rest/services/Census/MapServer/dynamicLayer/1/attachments?layer=" rel="nofollow" target="_blank"&gt;http://myServer/arcgis/rest/services/Census/MapServer/dynamicLayer/1/attachments?layer=&lt;/A&gt;&lt;SPAN&gt;{"id":101,"source":{"type":"mapLayer","mapLayerId":3}}&amp;amp;where=1=1&amp;amp;f=pjson &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more information check the following link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_attachmentinfos.html"&gt;http://resources.arcgis.com/en/help/rest/apiref/ms_dyn_attachmentinfos.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 09:20:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763165#M19467</guid>
      <dc:creator>AhmedEl-Sisi</dc:creator>
      <dc:date>2014-04-02T09:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: View attachments as hyperlink in popups</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763162#M19464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Michelle,&lt;BR /&gt;&lt;BR /&gt;Did you ever find a solution to this? I'm looking to do something similar and have tried a few things with no luck.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Use &lt;/SPAN&gt;&lt;A href=" http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~QueryAttachmentInfos.html" rel="nofollow noopener noreferrer" target="_blank"&gt;FeatureLayer::QueryAttachmentInfos&lt;/A&gt;&lt;SPAN&gt; to get list of attachments then bind it to ItemsControl contains hyperlink or whatever you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; featureLayer.QueryAttachmentInfos(selectedGraphic, (Action&amp;lt;IEnumerable&amp;lt;ESRI.ArcGIS.Client.FeatureService.AttachmentInfo&amp;gt;&amp;gt;)QueryAttachmentInfosCallback,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Action&amp;lt;Exception&amp;gt;)delegate(Exception ex) { MessageBox.Show(ex.ToString());});

&amp;nbsp; private void QueryAttachmentInfosCallback(IEnumerable&amp;lt;ESRI.ArcGIS.Client.FeatureService.AttachmentInfo&amp;gt; attachments)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Bind to Itemscontrol
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/view-attachments-as-hyperlink-in-popups/m-p/763162#M19464</guid>
      <dc:creator>AhmedEl-Sisi</dc:creator>
      <dc:date>2021-12-12T08:26:04Z</dc:date>
    </item>
  </channel>
</rss>

