<?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 Masking URLs in Attribute Table in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/masking-urls-in-attribute-table/m-p/863991#M12098</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is the right group or now, but it looks like there are lots of developers out there, so I'm sure to find some insight.&lt;/P&gt;&lt;P&gt;I've been looking for a way to "mask" URL values in the Attribute Table. &amp;nbsp;Through my research, I've found a portion of code in the {appid}\jimu.js\utils.js file called "getFormattedUrl:" under "mo.fieldFormatter".&lt;/P&gt;&lt;P&gt;I've altered this line of code "&lt;STRONG&gt;'&amp;lt;A href="' + link + '" target="_blank"&amp;gt;' + link + '&amp;lt;/A&amp;gt;' +&lt;/STRONG&gt;" to "&lt;STRONG&gt;'&amp;lt;A href="' + link + '" target="_blank"&amp;gt;More Info&amp;lt;/A&amp;gt;' +&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Now, anytime anything is displayed in the Attribute Table I see my "mask".&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372996_mask.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is awesome for what I need. &amp;nbsp;&lt;/P&gt;&lt;P&gt;As for my question(s), does anyone see anything wrong with this, could this be customized to utilize a config file, and has anyone else found any other ways to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3152"&gt;Jeff Shaner&lt;/A&gt;‌&amp;nbsp;&lt;A href="https://community.esri.com/people/dlaw-esristaff"&gt;dlaw-esristaff&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2017 19:26:54 GMT</pubDate>
    <dc:creator>JaysonLindahl</dc:creator>
    <dc:date>2017-09-26T19:26:54Z</dc:date>
    <item>
      <title>Masking URLs in Attribute Table</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/masking-urls-in-attribute-table/m-p/863991#M12098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this is the right group or now, but it looks like there are lots of developers out there, so I'm sure to find some insight.&lt;/P&gt;&lt;P&gt;I've been looking for a way to "mask" URL values in the Attribute Table. &amp;nbsp;Through my research, I've found a portion of code in the {appid}\jimu.js\utils.js file called "getFormattedUrl:" under "mo.fieldFormatter".&lt;/P&gt;&lt;P&gt;I've altered this line of code "&lt;STRONG&gt;'&amp;lt;A href="' + link + '" target="_blank"&amp;gt;' + link + '&amp;lt;/A&amp;gt;' +&lt;/STRONG&gt;" to "&lt;STRONG&gt;'&amp;lt;A href="' + link + '" target="_blank"&amp;gt;More Info&amp;lt;/A&amp;gt;' +&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Now, anytime anything is displayed in the Attribute Table I see my "mask".&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372996_mask.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;This is awesome for what I need. &amp;nbsp;&lt;/P&gt;&lt;P&gt;As for my question(s), does anyone see anything wrong with this, could this be customized to utilize a config file, and has anyone else found any other ways to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3152"&gt;Jeff Shaner&lt;/A&gt;‌&amp;nbsp;&lt;A href="https://community.esri.com/people/dlaw-esristaff"&gt;dlaw-esristaff&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 19:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/masking-urls-in-attribute-table/m-p/863991#M12098</guid>
      <dc:creator>JaysonLindahl</dc:creator>
      <dc:date>2017-09-26T19:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Masking URLs in Attribute Table</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/masking-urls-in-attribute-table/m-p/863992#M12099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jayson, &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see nothing about your change that will cause any issues for you. As far as making the hyperlink text configurable. You could change the&amp;nbsp;exports.generateColumnsFromFields function in the AttributeTable utils.js file to look for a specific field name and if that is found then use a custom column formatter function to replace the hyperlink text from a property in your config.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2017 19:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/masking-urls-in-attribute-table/m-p/863992#M12099</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-09-26T19:44:24Z</dc:date>
    </item>
  </channel>
</rss>

