<?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: Link Text displaying in eSearch Popup in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385107#M11087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anyones interested, the fix for the issue that I was (inadequately) describing is as follows: to remove the link text from the eSearch Widget Popup, simply find this line in the searchWidget.mxml &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;{link}&amp;lt;/a&amp;gt;"&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, you can hard code as follows, so as affect each search layer differently, if you so choose:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;{link}&amp;lt;/a&amp;gt;"//removed from Roberts original
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cboLayerText.selectedLabel == "Schools"){ //added to modify popup link text
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;Facility Website&amp;lt;/a&amp;gt;"}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (cboLayerText.selectedLabel == "TCAD Parcels"){ //added to modify popup link text
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;TCAD Website&amp;lt;/a&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; return popUpInfo;
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before image is in my first post, solution image attached to this post. The text Facility Website is now the link, and I have the icon link in the search results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim Faron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:42:14 GMT</pubDate>
    <dc:creator>JamesFaron</dc:creator>
    <dc:date>2021-12-11T17:42:14Z</dc:date>
    <item>
      <title>Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385102#M11082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For some reason the link text displays in the popup of a layer result in the eSearch Widget. Screenshop attached. This is the relevant portion of the eSearch.xml:&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;configuration&amp;gt;
 &amp;lt;layers&amp;gt;
&amp;nbsp; &amp;lt;layer&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;definitionexpression&amp;gt;&amp;lt;/definitionexpression&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;enableexport&amp;gt;true&amp;lt;/enableexport&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;lt;name&amp;gt;Schools&amp;lt;/name&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;lt;url&amp;gt;http://myserver/ArcGIS/rest/services/Maps/DistrictBasemap/MapServer/26&amp;lt;/url&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;lt;graphicalsearchlabel&amp;gt;Use one of the graphical search tools to select school&amp;lt;/graphicalsearchlabel&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;spatialsearchlayer&amp;gt;true&amp;lt;/spatialsearchlayer&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;titlefield&amp;gt;SCHOOL&amp;lt;/titlefield&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;lt;linkfield&amp;gt;URL&amp;lt;/linkfield&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;icon isfield="false"&amp;gt;assets/images/i_linkglobe1.png&amp;lt;/icon&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;lt;fields all="false"&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;lt;field name="NAME" alias="NAME" gridfield="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="FACILITY" alias="Facility" gridfield="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="CODE" alias="Code" gridfield="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="ADDRESS" alias="Address" gridfield="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="ZIP" alias="Zip" gridfield="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="CAPACITY" alias="Capacity" gridfield="true" gridfieldonly="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="ENROLLMENT" alias="Enrollment" gridfield="true" gridfieldonly="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="TEA_2010" alias="TEA 2010" gridfield="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="TEA_2009" alias="TEA 2009" gridfield="true" gridfieldonly="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="TEA_2008" alias="TEA 2008" gridfield="true" gridfieldonly="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field name="URL" alias="Facility Website" hyperlinkgridfield="true" hyperlinkaliastext="Facility Website" gridfieldonly="true"/&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/fields&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;zoomscale&amp;gt;8000&amp;lt;/zoomscale&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/layer&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want the link icon to work in the result, and it would be great if the icon appeared in the popup. Is there something that I am missing in the xml?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim Faron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2011 21:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385102#M11082</guid>
      <dc:creator>JamesFaron</dc:creator>
      <dc:date>2011-07-26T21:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385103#M11083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Your issue is that you are are telling the widget that the URL field is only to be show in the grid...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;lt;field name="URL" alias="Facility Website" hyperlinkgridfield="true" hyperlinkaliastext="Facility Website" &lt;STRONG style="color: Red;"&gt;gridfieldonly="true"&lt;/STRONG&gt;/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remove the gridfieldonly attribute and that should allow the icon to appear in the results. Your desire to have the icon in the popup is just not going to happen. The popup is controlled by the Flex API and unless you extend the API then you are just stuck the way it is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 00:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385103#M11083</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-27T00:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385104#M11084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually the icon appears in the results even with the gridfieldonly=true. What I would like to do is remove the web address, i.e. the link field value, from appearing in the popup, but retain the icon link in the result, if that is possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim Faron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385104#M11084</guid>
      <dc:creator>JamesFaron</dc:creator>
      <dc:date>2011-07-27T11:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385105#M11085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jim,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; No that's not possible. As I stated in my last post the way the popup displays the results is controlled in the API itself and I don't have control over that unless the API's PopUpRenderer component is extended and I don't have any plans to do that for this widget at the current time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 11:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385105#M11085</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-07-27T11:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385106#M11086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the response, and for this fantastic widget. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have customized the popup for this layer in the viewer using the viewers new popup configuration, and will look into the code to minimize the pop up behavior for this particular layer in the eSearch widget. It would be a great enhancement at some time to have the capability/choice of turning off or on the popups for a particular layer in the eSearch widget, especially now that the viewer accommodates custom popups via the config popups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for all that you do,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim Faron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 12:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385106#M11086</guid>
      <dc:creator>JamesFaron</dc:creator>
      <dc:date>2011-07-27T12:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385107#M11087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If anyones interested, the fix for the issue that I was (inadequately) describing is as follows: to remove the link text from the eSearch Widget Popup, simply find this line in the searchWidget.mxml &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;{link}&amp;lt;/a&amp;gt;"&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, you can hard code as follows, so as affect each search layer differently, if you so choose:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;{link}&amp;lt;/a&amp;gt;"//removed from Roberts original
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cboLayerText.selectedLabel == "Schools"){ //added to modify popup link text
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;Facility Website&amp;lt;/a&amp;gt;"}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (cboLayerText.selectedLabel == "TCAD Parcels"){ //added to modify popup link text
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; popUpInfo.description += "&amp;lt;br/&amp;gt;&amp;lt;a href='{link}'&amp;gt;TCAD Website&amp;lt;/a&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; return popUpInfo;
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before image is in my first post, solution image attached to this post. The text Facility Website is now the link, and I have the icon link in the search results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim Faron&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385107#M11087</guid>
      <dc:creator>JamesFaron</dc:creator>
      <dc:date>2021-12-11T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385108#M11088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well done Jim and thanks for sharing your solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 19:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385108#M11088</guid>
      <dc:creator>MLowry</dc:creator>
      <dc:date>2011-07-28T19:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text displaying in eSearch Popup</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385109#M11089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for sharing your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed that the link would revert back when opening the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Data Grid&lt;/SPAN&gt;&lt;SPAN&gt;, so be sure to open the SearchWidgetFloat(or Fixed)DG.mxml and edit the same lines of code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 16:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/link-text-displaying-in-esearch-popup/m-p/385109#M11089</guid>
      <dc:creator>JustinConner</dc:creator>
      <dc:date>2011-10-10T16:38:28Z</dc:date>
    </item>
  </channel>
</rss>

