<?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 How can I add icons that replace the cell.value on my table without using rangemap? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215881#M63313</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to add icons that replace the cell.value on my table without using range map.&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2015 09:04:43 GMT</pubDate>
    <dc:creator>sfatnass</dc:creator>
    <dc:date>2015-09-08T09:04:43Z</dc:date>
    <item>
      <title>How can I add icons that replace the cell.value on my table without using rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215881#M63313</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to add icons that replace the cell.value on my table without using range map.&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;

&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 09:04:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215881#M63313</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-09-08T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add icons that replace the cell.value on my table without using rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215882#M63314</link>
      <description>&lt;P&gt;I don't know if you can do it without rangemap.  If you haven't already, take a look at the &lt;A href="https://splunkbase.splunk.com/app/1923/#/overview"&gt;Traffic Light Visualisations&lt;/A&gt; App.  Good examples there.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215882#M63314</guid>
      <dc:creator>jerhuey75</dc:creator>
      <dc:date>2015-09-08T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add icons that replace the cell.value on my table without using rangemap?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215883#M63315</link>
      <description>&lt;P&gt;You'll need to use javascript if you're looking to use icons without rangemaps. Below you'll find a segment of my code that is placing icons in a table. Instead of a rangemap you'll see that this is choosing the icon based on conditionals and the cell value itself.&lt;/P&gt;

&lt;P&gt;Go &lt;A href="http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAEVM"&gt;here&lt;/A&gt; if you have never used javascript with dashboards before. My code is expanding upon these concepts.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var CustomRangeRenderer = TableView.BaseCellRenderer.extend({
        canRender: function(cell) 
        {

            return _(['SLA']).contains(cell.field);
        },
        render: function($td, cell) {

             var template_settings="";
             console.log("cell: ", cell);

            if (cell.field === 'SLA') {
                var value = cell.value;
                if( value == '-1') {
                    $td.addClass('nopadding').addClass('range-cell').addClass('range-na');
                    // $td.text(value);
                    $td.text('N/A');

                    var msg='No Response Time SLA defined for this transaction.';
                    template_settings = '&amp;lt;div class="data-box" data-toggle="tooltip" data-placement="left" title="'+msg+'"&amp;gt;&amp;lt;div class="sla-good"  style="background-color:#222222; width:100%"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;';
                }
                else if ( value == '0') {
                        $td.addClass('nopadding');

                        var msg='Transactions failed response time SLA as defined in terms of 90th percentile'; 
                        template_settings = '&amp;lt;i class="icon-alert-circle" title="Failed"&amp;gt;&amp;lt;/i&amp;gt;';
                }
                else {

                        $td.addClass('nopadding');

                        var msg='Transactions passed response time SLA as defined in terms of 90th percentile';
                        template_settings = '&amp;lt;i class="icon-check-circle" title="Passed"&amp;gt;&amp;lt;/i&amp;gt;';

                }
            }
            $td.html(_.template(template_settings));

            //$td.children('[data-toggle="tooltip"]').tooltip();
        }
    });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Sep 2015 14:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-add-icons-that-replace-the-cell-value-on-my-table/m-p/215883#M63315</guid>
      <dc:creator>ConnorG</dc:creator>
      <dc:date>2015-09-08T14:03:58Z</dc:date>
    </item>
  </channel>
</rss>

