<?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: Issue with css, html, js Formatting Search Output in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489926#M32095</link>
    <description>&lt;P&gt;@niketnilay &lt;BR /&gt;
Testing. &lt;BR /&gt;
Is there a reason you used &lt;STRONG&gt;statusClass&lt;/STRONG&gt; and not &lt;STRONG&gt;statusNum&lt;/STRONG&gt;? I believe (please correct me) the original reason you used was that CSS doesn't except numbers as an ID or class? Does the same hold true for &lt;EM&gt;colorPalette&lt;/EM&gt;?&lt;/P&gt;

&lt;P&gt;Also, to make the code cleaner and easier to read I used IN on the &lt;STRONG&gt;statusClass&lt;/STRONG&gt; eval.&lt;BR /&gt;
Your code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval statusClass=case(status="printing,deleting,error","status_fatal",status="error,toner low","status_fatal",status="printing,error","status_fatal",status="paper jam","status_fatal",status="no toner","status_fatal",status="error,offline","status_fatal",status="error","status_fatal",
     status="door open,error","status_critical",status="spooling,paused","status_critical",status="paused","status_critical",status="out of paper","status_critical",status="error,out of paper","status_critical",status="offline","status_critical",status="door open","status_critical",
     status="toner low","status_low",status="restarted","status_low",
     status="printing,deleting","status_info",status="printed,deleting","status_info",status="printing,printed,deleting","status_info",status="error,warming up","status_info",status="spooling,printing","status_info",status="error,offline","status_info",status="spooling","status_info",status="printing","status_info",status="normal","status_info") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | eval statusClass=case(
     status IN ("printing,deleting,error","error,toner low","printing,error","paper jam","no toner","error,offline","error"),"status_fatal",
     status IN ("door open,error","spooling,paused","paused","out of paper","error,out of paper","offline","door open"),"status_critical",
     status IN ("toner low","restarted"),"status_low",
     status IN ("printing,deleting","printed,deleting","printing,printed,deleting","error,warming up","spooling,printing","error,offline","spooling","printing","normal"),"status_info") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is the ^ in your code required or a typo? &lt;STRONG&gt;"^status_critical"&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;           &amp;lt;colorPalette type="expression"&amp;gt;if (match(value,"status_fatal"), "#DC4E41", if(match(value,"^status_critical"),"#F8BE34", if(match(value,"status_low"),"#62B3B2","#B6C75A")))&amp;lt;/colorPalette&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Lastly (for now), unless I want to make my &lt;STRONG&gt;colorPalette&lt;/STRONG&gt; more complex, I have to use &lt;STRONG&gt;statusClass&lt;/STRONG&gt; in the cells? The &lt;STRONG&gt;colorPalette&lt;/STRONG&gt; uses &lt;STRONG&gt;statusClass&lt;/STRONG&gt; in the match. I did not want &lt;STRONG&gt;statusClass&lt;/STRONG&gt; to be a viewable field in the dashboard. The user would know the class based on the color of the cell.&lt;/P&gt;

&lt;P&gt;Thanks again. Continuing to test and tweak.&lt;BR /&gt;
God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 14:22:45 GMT</pubDate>
    <dc:creator>genesiusj</dc:creator>
    <dc:date>2020-03-12T14:22:45Z</dc:date>
    <item>
      <title>Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489906#M32075</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I'm starting this post with a shoutout to &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt; because I used one of his post as the basis for my dashboard. However, input from any/all Splunkers out there is appreciated.&lt;/P&gt;

&lt;P&gt;Here is my code, modified from niketnilay's post. &lt;A href="https://answers.splunk.com/answers/662523/how-to-show-table-result-in-one-page-table-modific.html" target="_blank"&gt;How to show table result in one page/ table modification&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Show Table Results in One Page&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt; index=oit_printer_monitoring AND type=Printer 
    | eval timeConvDate=strftime(_time,"%a %m-%d-%Y") 
    | eval timeConvTime=strftime(_time,"%H:%M:%S") 
    | eval statusNum=case(status="printing,deleting,error",4,status="error,toner low",4,status="printing,error",4,status="paper jam",4,status="no toner",4,status="error,offline",4,status="error",4,
        status="door open,error",3,status="spooling,paused",3,status="paused",3,status="out of paper",3,status="error,out of paper",3,status="offline",3,status="door open",3,
        status="toner low",2,status="restarted",2,
        status="printing,deleting",1,status="printed,deleting",1,status="printing,printed,deleting",1,status="error,warming up",1,status="spooling,printing",1,status="warming up",1,status="spooling",1,status="printing",1,status="normal",1) 
    | sort - statusNum, status 
    | fields printer, status, statusNum, timeConvDate, timeConvTime 
    | dedup printer 
    | eval printer="#".printer 
    | eval component=mvzip(printer,mvzip(status,mvzip(timeConvDate,timeConvTime,"..."),"..."),"...") 
    | stats values(component) as component 
    | nomv component 
    | eval component="&amp;lt;div&amp;gt;".replace(component,"#","&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;")."&amp;lt;/div&amp;gt;" 
    | makemv delim="..." component 
    | table component&amp;lt;/query&amp;gt;......
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Explanation.&lt;BR /&gt;
Create two new fields for time and date. &lt;CODE&gt;| eval timeConvDate=strftime(_time,"%a %m-%d-%Y")   | eval timeConvTime=strftime(_time,"%H:%M:%S")&lt;/CODE&gt;&lt;BR /&gt;
Create a new field to represent the status as a number that can be sorted later. &lt;CODE&gt;| eval statusNum=case(status="printing,deleting,error",4,status="error,toner low",4,....&lt;/CODE&gt;&lt;BR /&gt;
Append a "&lt;STRONG&gt;#&lt;/STRONG&gt;" in front of my first field, printer, to establish the beginning of a new field &lt;STRONG&gt;component&lt;/STRONG&gt;&lt;EM&gt;. &lt;CODE&gt;| eval printer="#".printer&lt;/CODE&gt;&lt;BR /&gt;
The field **component&lt;/EM&gt;* will be concatenation of several other fields: &lt;STRONG&gt;printer&lt;/STRONG&gt;, &lt;STRONG&gt;status&lt;/STRONG&gt;, and the &lt;STRONG&gt;timeConvDate&lt;/STRONG&gt; and &lt;STRONG&gt;timeConvTime&lt;/STRONG&gt; fields as one. &lt;CODE&gt;| eval component=mvzip(printer,mvzip(status,mvzip(timeConvDate,timeConvTime,"..."),"..."),"...")&lt;/CODE&gt; I used "..." instead of "|" between each of the concatenated fields.&lt;BR /&gt;
The next two lines are from niketnilay's code unchanged. &lt;CODE&gt;| stats values(component) as component   | nomv component '&lt;BR /&gt;
Modified niketnilay's eval/replace code as follows:&lt;/CODE&gt;| eval component="&amp;lt;div&amp;gt;".replace(component,"#","&amp;lt;/div&amp;gt;&amp;lt;div&amp;gt;")."&amp;lt;/div&amp;gt;"&lt;CODE&gt;By using the "..." all 4 fields stay associated to each other, and the "#" indicates of the start of the field **component**.&lt;BR /&gt;
Replaced the "..." within the field component with a carriage return/newline.&lt;/CODE&gt;| makemv delim="..." component `&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Before continuing, I have a question about the field named *&lt;/EM&gt;&lt;EM&gt;component&lt;/EM&gt;&lt;STRONG&gt;. When I substituted ***component&lt;/STRONG&gt;* with my field name, &lt;STRONG&gt;&lt;EM&gt;printerResult&lt;/EM&gt;&lt;/STRONG&gt;, it did not work. I had substituted in the js code as well. Therefore, I used &lt;STRONG&gt;&lt;EM&gt;component&lt;/EM&gt;&lt;/STRONG&gt; instead. My question is, in the js code, the word &lt;STRONG&gt;&lt;EM&gt;Components&lt;/EM&gt;&lt;/STRONG&gt; is used (plural and upper case C). Is this a special variable name for js and that is why it was used?*&lt;/P&gt;

&lt;P&gt;I am using &lt;STRONG&gt;display_token_with_html_content.js&lt;/STRONG&gt; as written.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; require([
     "jquery",
     "splunkjs/mvc",
     "splunkjs/mvc/simplexml/ready!"
 ], function (
     $,
     mvc
 ) {
         var defaultTokenModel = mvc.Components.get("default");
         defaultTokenModel.on("change:tokResultsInHTML", function (model, tokResultsInHTML, options) {
             if (tokResultsInHTML !== undefined) {
                 $("#htmlTokenContainer").html(tokResultsInHTML);
             }
         });
     });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used niketnilay's css in a panel&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Applying HTML Style&amp;lt;/title&amp;gt;
  &amp;lt;html&amp;gt;
     &amp;lt;style&amp;gt;
       #htmlTokenContainer{
         display:flex;
         flex-wrap:wrap;
       }
       #htmlTokenContainer div{
         width: 260px;
       }
     &amp;lt;/style&amp;gt;
     $tokResultsInHTML$
   &amp;lt;/html&amp;gt;....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Lastly, I created another panel with just the token value assigned earlier per the niketnilay example.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;Format Data as desired output and show as html&amp;lt;/title&amp;gt;
  &amp;lt;html&amp;gt;       
       &amp;lt;div id="htmlTokenContainer"&amp;gt;      
       &amp;lt;/div&amp;gt;
     &amp;lt;/html&amp;gt;....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is a screenshot of my results.&lt;BR /&gt;&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/284688-printer-dashboard-issue.jpg" alt="Printer Dashboard Issue" /&gt;&lt;/P&gt;

&lt;P&gt;What I am trying to accomplish is placing each value of &lt;STRONG&gt;component&lt;/STRONG&gt; into individual cells. The formatting would be all centered. As the final requirement click the printer name in any one of the cells would set a token, which displays another panel (depends="token" ) and populates the panel with data specific to the printer clicked.&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489906#M32075</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-09-30T04:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489907#M32076</link>
      <description>&lt;P&gt;&lt;STRONG&gt;[UPDATED ANSWER]&lt;/STRONG&gt; as per mock screenshots provided. Please refer to updated screenshot and code below. You can play with CSS and SPL as per your actual needs.&lt;/P&gt;

&lt;P&gt;PS: &lt;STRONG&gt;No changes to JS&lt;/STRONG&gt;. So only &lt;CODE&gt;SPL query&lt;/CODE&gt;, &lt;CODE&gt;CSS  &amp;lt;Style&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel has been changed. &lt;BR /&gt;
1. SPL has been changed to bring data for specific printer in one cell and all the Printers in one row.&lt;BR /&gt;
2. As per your need nested &lt;CODE&gt;&amp;lt;div&amp;gt;&lt;/CODE&gt; sections were required for responsive table design where data is in single row but wraps to the subsequent row if width of the view is reduced. Previous example was built using &lt;CODE&gt;&amp;lt;table&amp;gt;&lt;/CODE&gt; hence it was not responsive.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://wiki.splunk.com/images/a/a7/Html_table_from_search_result.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;@genesiusj, is there a reason why you want table kind of view but not Splunk table?&lt;BR /&gt;
I have converted my answer to build a table for five fields &lt;CODE&gt;printer, status, statusNum, timeConvDate, timeConvTime&lt;/CODE&gt; as per your question. In order to pass the data from Search results to JS the token &lt;CODE&gt;tokResultsInHTML&lt;/CODE&gt; has been set in &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; search event handler and the field name from search SPL i.e. &lt;CODE&gt;htmlData&lt;/CODE&gt; is passed using predefined search token &lt;CODE&gt;$result. htmlData$&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;As compared to the previous example with &lt;CODE&gt;&amp;lt;div&amp;gt;&lt;/CODE&gt; section (where request was for single field to be displayed in four columns), I have created &lt;CODE&gt;&amp;lt;table&amp;gt;&lt;/CODE&gt; with row &lt;CODE&gt;&amp;lt;tr&amp;gt;&lt;/CODE&gt; and cell &lt;CODE&gt;.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;PS: CSS Style override has been changed as per table structure (each element has id &lt;CODE&gt;#&lt;/CODE&gt; and class &lt;CODE&gt;.&lt;/CODE&gt; added for specific customization). I have overridden few as example kindly change as needed. Central text alignment has been applied for each table cell.&lt;/P&gt;

&lt;P&gt;Please try out and confirm!&lt;/P&gt;

&lt;P&gt;Following is the run anywhere example Simple XML code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard script="display_token_with_html_content.js"&amp;gt;
  &amp;lt;label&amp;gt;Table with HTML data&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults 
| eval status="printing,deleting,error;printing,error;door open,error;restarted;printed,deleting;error,offline;error,offline;spooling,paused" 
| makemv status delim=";" 
| mvexpand status 
| eval delta=500 
| streamstats count as sno 
| eval printer="printer".sno 
| eval delta=delta*sno 
| eval _time=_time-delta 
| fields - delta sno 
| eval timeConvDate=strftime(_time,"%a %m-%d-%Y") 
| eval timeConvTime=strftime(_time,"%H:%M:%S") 
| eval statusClass=case(status="printing,deleting,error","status_fatal",status="error,toner low","status_fatal",status="printing,error","status_fatal",status="paper jam","status_fatal",status="no toner","status_fatal",status="error,offline","status_fatal",status="error","status_fatal",
    status="door open,error","status_critical",status="spooling,paused","status_critical",status="paused","status_critical",status="out of paper","status_critical",status="error,out of paper","status_critical",status="offline","status_critical",status="door open","status_critical",
    status="toner low","status_low",status="restarted","status_low",
    status="printing,deleting","status_info",status="printed,deleting","status_info",status="printing,printed,deleting","status_info",status="error,warming up","status_info",status="spooling,printing","status_info",status="error,offline","status_info",status="spooling","status_info",status="printing","status_info",status="normal","status_info")
| sort - statusClass, status
| table printer, status, statusClass, timeConvDate, timeConvTime
| eval htmlData="&amp;amp;lt;div class=\"html_table_column ".statusClass."\"&amp;amp;gt;&amp;amp;lt;div class=\"html_column_printer html_div_center\"&amp;amp;gt;".printer."&amp;amp;lt;/div&amp;amp;gt;&amp;amp;lt;div id=\"column_status\" class=\"html_div_center\"&amp;amp;gt;".status."&amp;amp;lt;/div&amp;amp;gt;"."&amp;amp;lt;div id=\"column_timeConvDate\" class=\"html_div_center\"&amp;amp;gt;".timeConvDate."&amp;amp;lt;/div&amp;amp;gt;"."&amp;amp;lt;div id=\"column_timeConvTime\" class=\"html_div_center\"&amp;amp;gt;".timeConvTime."&amp;amp;lt;/div&amp;amp;gt;&amp;amp;lt;/div&amp;amp;gt;"
| stats list(htmlData) as htmlData
| eval htmlData="&amp;amp;lt;div class=\"html_table_row\"&amp;amp;gt;".mvjoin(htmlData," ")."&amp;amp;lt;/div&amp;amp;gt;"&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="tokResultsInHTML"&amp;gt;$result.htmlData$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
         &amp;lt;style&amp;gt;
          div#html_table div.html_table_row{
            display: flex;
            flex-wrap: wrap;
          }
          div#html_table div.html_table_row div.html_table_column{
            width:15%;
            text-align:center;
            text-align: center;
            color: white;
            margin-right: 10px;
            margin-bottom: 10px;
            padding-top: 10px;
            padding-bottom: 10px;
          }
          div#html_table div.html_table_row div.status_fatal{
            background:red;
          }
          div#html_table div.html_table_row div.status_critical{
            background:orange;
          }
          div#html_table div.html_table_row div.status_low{
            background:blue;
          }
          div#html_table div.html_table_row div.status_info{
            background:green;
          }
          div#html_table div.html_table_row div.html_column_printer{
            font-weight:bold;
            font-size:120%;
          }
         &amp;lt;/style&amp;gt;
         $tokResultsInHTML$
       &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Format Data as desired output and show as html&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
           &amp;lt;div id="html_table"&amp;gt;
           &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the required JS &lt;CODE&gt;display_token_with_html_content .js&lt;/CODE&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; require([
     "jquery",
     "splunkjs/mvc",
     "splunkjs/mvc/simplexml/ready!"
 ], function (
     $,
     mvc
 ) {
         var defaultTokenModel = mvc.Components.get("default");
         defaultTokenModel.on("change:tokResultsInHTML", function (model, tokResultsInHTML, options) {
             if (tokResultsInHTML !== undefined) {
                 $("#html_table").html(tokResultsInHTML);
             }
         });
     });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;mvc.Components&lt;/CODE&gt; is predefined Splunk JS object/class notation so kindly don't confuse with the &lt;CODE&gt;component&lt;/CODE&gt; column which was used in the previous example. I have changed the example SPL, you can replace commands from &lt;CODE&gt;| makeresults&lt;/CODE&gt; till &lt;CODE&gt;| fields - delta sno&lt;/CODE&gt; with your index query and use the remaining pipes as is.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 18:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489907#M32076</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-09T18:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489908#M32077</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
I'm going to test your suggested code and will let you know the results. &lt;/P&gt;

&lt;P&gt;Meanwhile, let me answer your first question. &amp;gt;  is there a reason why you want table kind of view but not Splunk table?&lt;/P&gt;

&lt;P&gt;We prefer a Splunk table. However, briefly checking your last response, I think I wasn't clear on the required format.&lt;/P&gt;

&lt;P&gt;Each cell should one printer with its associated fields under it.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;printer&lt;BR /&gt;
status&lt;BR /&gt;
date&lt;BR /&gt;
time&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The data in each cell would be centered; and when the &lt;STRONG&gt;printer&lt;/STRONG&gt; name is clicked on a new panel opens at the top of the dashboard containing printer, status, date, time, plus several additional fields: contact and location information, etc. The new panel is driven by a token. depends="tok_printerDetails"&lt;/P&gt;

&lt;P&gt;We tested our search using the &lt;STRONG&gt;transpose&lt;/STRONG&gt; command. However, while each cell contained one printer, the table was only a single row. Therefore we had to scroll (horizontal scrolling) to view all of the printers. When I found your post, I decided to see if this could resolve our issue. Another issue with the &lt;STRONG&gt;transpose&lt;/STRONG&gt; command is losing the required formatting. The background of each cell is color-coded based on its &lt;STRONG&gt;status&lt;/STRONG&gt;. There are over 20 values for &lt;STRONG&gt;status&lt;/STRONG&gt;. This is why we created the &lt;STRONG&gt;statusNum&lt;/STRONG&gt; field to summarize the various &lt;STRONG&gt;status&lt;/STRONG&gt; into 4 general &lt;STRONG&gt;status&lt;/STRONG&gt;. &lt;/P&gt;

&lt;P&gt;We tested without using the &lt;STRONG&gt;transpose&lt;/STRONG&gt; command, and were able to produce a single cell for each printer, and our formatting remained. However, the table was a single column, which required vertical scrolling.&lt;/P&gt;

&lt;P&gt;@woodcock replied on a different post with code that &lt;EM&gt;might&lt;/EM&gt; resolve the transpose issue. But we are continuing to test a variety of different solutions and formats.&lt;/P&gt;

&lt;P&gt;I hope to answer his post next.&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489908#M32077</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-09T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489909#M32078</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
We are unable to run the above dashboard. Receive Unquoted attribute error on line 22.&lt;BR /&gt;
&lt;CODE&gt;| eval htmlData="&amp;lt;tr class=\"html_table_row\"&amp;gt;"."&amp;lt;td class=\"html_table_column\" id=\"column_printer\"&amp;gt;".printer."&amp;lt;/td&amp;gt;"."&amp;lt;td class=\"html_table_column\" id=\"column_status\"&amp;gt;".status."&amp;lt;/td&amp;gt;"."&amp;lt;td class=\"html_table_column\" id=\"column_statusNum\"&amp;gt;".statusNum."&amp;lt;/td&amp;gt;"."&amp;lt;td class=\"html_table_column\" id=\"column_timeConvDate\"&amp;gt;".timeConvDate."&amp;lt;/td&amp;gt;"."&amp;lt;td class=\"html_table_column\" id=\"column_timeConvTime\"&amp;gt;".timeConvTime."&amp;lt;/td&amp;gt;"."&amp;lt;tr&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;We counted the quotes, and they're an even number, and appear to be in the proper positions.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;As compared to the previous example with  section (where request was for single field to be displayed in four columns), I have created  with row  and cell .&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But IS what we are looking for. The only difference is a newline separating the four fields - printer, status, date, time - but in the same cell.&lt;/P&gt;

&lt;P&gt;We'll be continuing to investigate further. Please let me know if our requirements are unclear.&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 20:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489909#M32078</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-09T20:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489910#M32079</link>
      <description>&lt;P&gt;@genesiusj less than and greater than sign needs to be escaped in Dashboard code. On answers it resolves to the actual character hence you are not seeing &lt;CODE&gt;&amp;amp; lt ;&lt;/CODE&gt; or &lt;CODE&gt;&amp;amp; gt ;&lt;/CODE&gt; (purposely added space so that they do not get replaced on Answer).&lt;/P&gt;

&lt;P&gt;Refer to w3schools link for using Espace sequence for the less than and greater than characters and replace the same in your dashboard code... &lt;A href="https://www.w3schools.com/html/html_entities.asp"&gt;https://www.w3schools.com/html/html_entities.asp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 05:58:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489910#M32079</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-10T05:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489911#M32080</link>
      <description>&lt;P&gt;Thanks @niketnilay &lt;BR /&gt;
DOH! Silly mistake, that I am usually good at catching.&lt;BR /&gt;
I will correct and test.&lt;BR /&gt;
God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 13:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489911#M32080</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-10T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489912#M32081</link>
      <description>&lt;P&gt;@niketnilay &lt;BR /&gt;
Making the &lt;STRONG&gt;&amp;lt;&amp;gt;&lt;/STRONG&gt; change worked.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;As compared to the previous example with  section (where request was for single field to be displayed in four columns), I have created  with row  and cell.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Not sure if I need a combination of &lt;STRONG&gt;div&lt;/STRONG&gt; and &lt;STRONG&gt;table&lt;/STRONG&gt;? &lt;/P&gt;

&lt;P&gt;What I need is to now format these 4 fields (&lt;STRONG&gt;printer&lt;/STRONG&gt;, &lt;STRONG&gt;status&lt;/STRONG&gt;, &lt;STRONG&gt;timeConvDate&lt;/STRONG&gt;, and &lt;STRONG&gt;timeConvTime&lt;/STRONG&gt;) into a &lt;EM&gt;single field&lt;/EM&gt; (&lt;STRONG&gt;printerResults&lt;/STRONG&gt;) with a newline after the &lt;STRONG&gt;printer&lt;/STRONG&gt;, &lt;STRONG&gt;status&lt;/STRONG&gt;, and &lt;STRONG&gt;timeConvDate&lt;/STRONG&gt; values. The &lt;STRONG&gt;statusNum&lt;/STRONG&gt; field is using strictly for sorting purposes and will not be displayed.&lt;BR /&gt;
Next, I need to color the entire cell based on the &lt;STRONG&gt;statusNum&lt;/STRONG&gt;.&lt;BR /&gt;
Lastly, a drill-down (opening a new panel at the top of this dashboard) when the cell is clicked (or just the &lt;STRONG&gt;printer&lt;/STRONG&gt; if the code will be too difficult) that will display these four fields, plus additional fields for contact and location information, as well as additional drill-down links.&lt;/P&gt;

&lt;P&gt;BTW, I am searching for CSS/HTML/JS for dummies type of sites so I can learn. I worked with CSS and HTML a very long time ago, but never with JS.&lt;/P&gt;

&lt;P&gt;Thank you again for all your help and insights.&lt;/P&gt;

&lt;P&gt;God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489912#M32081</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-10T14:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489913#M32082</link>
      <description>&lt;P&gt;Can you whiteboard your output? Even pen and paper output with some example is fine.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:13:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489913#M32082</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-10T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489914#M32083</link>
      <description>&lt;P&gt;@niketnilay &lt;BR /&gt;
Will do.&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489914#M32083</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-10T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489915#M32084</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
For whatever reason, the links to the screenshots keeps failing.&lt;BR /&gt;
Examples: &lt;A href="https://imgur.com/lDMRScj"&gt;https://imgur.com/lDMRScj&lt;/A&gt;&lt;BR /&gt;
Required Display: &lt;A href="https://imgur.com/23pRnKq"&gt;https://imgur.com/23pRnKq&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The first image is a screenshot of the output I am receiving. The code will follow each example.&lt;BR /&gt;
The second image is a mockup (used Excel) of our requirements.&lt;/P&gt;

&lt;P&gt;When a &lt;STRONG&gt;printer&lt;/STRONG&gt; is clicked, drill-down panels #4 &amp;amp; #5 should be displayed. Panel #4 contains the info as the previous clicked panel; plus other fields (not shown here) for contact and location information. Panel #5 contains a jpg of the printer. Clicking on the jpg will result in a new browser window opening. This window is the web interface for the printer.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;THIS IS THE BASE SEARCH CODE

index=oit_printer_monitoring AND type=Printer
  | eval timeConvDate=strftime(_time,"%a %m-%d-%Y")
  | eval timeConvTime=strftime(_time,"%H:%M:%S")
  | eval statusNum=case(status IN ("printing,deleting,error","error,toner low","printing,error","paper jam","no toner","error,offline","error"),4,
       status IN ("door open,error","spooling,paused","paused","out of paper","error,out of paper","offline","door open"),3,
       status IN ("toner low","restarted"),2,
       status IN ("printing,deleting","printed,deleting","printing,printed,deleting","error,warming up","spooling,printing","warming up","spooling","printing","normal"),1) 
  | sort - statusNum, status 
  | fields  printer, status, statusNum, timeConvDate, timeConvTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Panel #1: the data is displayed in a similar fashion to that from the code you provided. All the fields are clickable, and the drill-down will open panels #4 &amp;amp; #5. However, the data for a single printer is displayed across 4 columns; and formatting based on the &lt;STRONG&gt;statusNum&lt;/STRONG&gt; field effects only the status &lt;STRONG&gt;field&lt;/STRONG&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Regular Table - Formatting Works - Click Any Field&amp;lt;/title&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSStyle$"/&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;
| eval printerResult=mvzip(printer,mvzip(status,mvzip(timeConvDate,timeConvTime,"  "),"  "),"  ")
| makemv delim="  " printerResult
| dedup printer
| table printer, status, statusNum, timeConvDate, timeConvTime&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="status"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;if(like(value,"%out of paper%"),"#ee0000",if(like(value,"%toner low%"),"#ff9b0","#27db17"))&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tok_printerInfo"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Panel #2: the data displayed is a single cell per &lt;STRONG&gt;printer&lt;/STRONG&gt; (&lt;STRONG&gt;status&lt;/STRONG&gt;, &lt;STRONG&gt;date&lt;/STRONG&gt;, and &lt;STRONG&gt;time&lt;/STRONG&gt;), and the background color has been formatted according to the &lt;STRONG&gt;statusNum&lt;/STRONG&gt; field. However, only the printer field is clickable (drill-down will open panels #4 &amp;amp; #5); and the data is displayed in a single column.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Multivalue 1 Row - Formatting Works - Click Printer Name Only&amp;lt;/title&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSStyle$"/&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;
| eval printerResult=mvzip(printer,mvzip(status,mvzip(timeConvDate,timeConvTime,"  "),"  "),"  ")
| makemv delim="  " printerResult
| dedup printer
| table printerResult, printer, status, statusNum, timeConvDate, timeConvTime
| fields - column, - printer, - status, - statusNum, - timeConvDate, - timeConvTime&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="printerResult"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;if(like(value,"%out of paper%"),"#ee0000",if(like(value,"%toner low%"),"#ff9b0","#27db17"))&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tok_printerInfo"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Panel #3: the data is displayed in a single cell per &lt;STRONG&gt;printer&lt;/STRONG&gt; (&lt;STRONG&gt;status&lt;/STRONG&gt;, &lt;STRONG&gt;date&lt;/STRONG&gt;, and &lt;STRONG&gt;time&lt;/STRONG&gt;), and is displayed horizontally. However, only the &lt;STRONG&gt;printer&lt;/STRONG&gt; field is clickable (drill-down will open panels #4 &amp;amp; #5); no color formatting is run based on the &lt;STRONG&gt;statusNum&lt;/STRONG&gt; field, and the data is displayed in a single row.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Transpose 1 Row - Not Formatting - Click Printer Name Only&amp;lt;/title&amp;gt;
      &amp;lt;html depends="$alwaysHideCSSStyle$"/&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;
| eval printerResult=mvzip(printer,mvzip(status,mvzip(timeConvDate,timeConvTime,"  "),"  "),"  ")
| makemv delim="  " printerResult
| dedup printer
| table printerResult
| transpose 0
| fields - column&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="showPager"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="printerResult"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;if(like(value,"%out of paper%"),"#ee0000",if(like(value,"%toner low%"),"#ff9b0","#27db17"))&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="tok_printerInfo"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All panels use this table formatting (color formatting is in the panel code).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel depends="$alwaysHideCSS$"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          thead{
            font-size: 13pt !important;
            display: none !important;
            text-align: center !important;
          }
            table, tbody, tr, td{
              font-size: 10pt !important;
              font-color: 0xffffff !important;
              text-align: center !important;
              border: 3px solid white;
          }
            .dashboard-row .dashboard-panel .panel-element-row {
              overflow: auto;
              max-height: 300px;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the code for panels #4 &amp;amp; #5.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row depends="$tok_printerInfo$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Drill-down Panel 1&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;
| where printer="$tok_printerInfo$"
| table printer, status, timeConvDate, timeConvTime
| dedup printer
| transpose 0 
&amp;lt;!--| transpose 0 header_field=printer--&amp;gt;
| fields - column&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Drill-down Panel 2&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
    &amp;lt;center&amp;gt;
      &amp;lt;a href="http://$tok_printerInfo$.web.us" target="_blank"&amp;gt;        &amp;lt;img src="/static/app/search/images/$tok_printerInfo$.jpg" height="auto" width="150px"/&amp;gt;      &amp;lt;/a&amp;gt;
      &amp;lt;/center&amp;gt;
  &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are our requirements.&lt;BR /&gt;
1. Single cell per printer (&lt;STRONG&gt;printer&lt;/STRONG&gt;, &lt;STRONG&gt;status&lt;/STRONG&gt;, &lt;STRONG&gt;date&lt;/STRONG&gt;, and &lt;STRONG&gt;time&lt;/STRONG&gt; fields).&lt;BR /&gt;
2. The formatting of the cell is based on the value of the &lt;STRONG&gt;statusNum&lt;/STRONG&gt; field.&lt;BR /&gt;
3. Entire cell clickable, not just the &lt;STRONG&gt;printer&lt;/STRONG&gt; field. Not a deal-breaker.&lt;BR /&gt;
4. Table format (see screenshot below): left to right, across row (this would be based on other search/sort criteria not mentioned here for simplicity). When reaching the end of the visible page, a new row is displayed (this is why I was using your post on How to show table result in one page/ table modification). This continues until all printers are displayed. It is OK to have a vertical scroll bar, but not a horizontal one.&lt;/P&gt;

&lt;P&gt;Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489915#M32084</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-10T16:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489916#M32085</link>
      <description>&lt;P&gt;@genesiusj I have updated my answer. Refer to screenshot and new code. Please try out and confirm. You may have to change SPL and CSS as per your needs.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 18:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489916#M32085</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-11T18:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489917#M32086</link>
      <description>&lt;P&gt;@niketnilay&lt;BR /&gt;
THANK YOU SO MUCH!&lt;BR /&gt;
I copied the XML as is, and I have the same results as your screenshot.&lt;BR /&gt;
I'm going to modify your code using my data sources and get back to you.&lt;BR /&gt;
Thanks and God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 19:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489917#M32086</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-11T19:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489918#M32087</link>
      <description>&lt;P&gt;@niketnilay is there a way to drilldown to each tile..&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 08:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489918#M32087</guid>
      <dc:creator>vinothn</dc:creator>
      <dc:date>2020-03-12T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489919#M32088</link>
      <description>&lt;P&gt;drilldown to a tile or drilldown from tile to something else?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 08:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489919#M32088</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-12T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489920#M32089</link>
      <description>&lt;P&gt;@niketnilay drilldown to new dashboard.(Need to use Link)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 09:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489920#M32089</guid>
      <dc:creator>vinothn</dc:creator>
      <dc:date>2020-03-12T09:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489921#M32090</link>
      <description>&lt;P&gt;@niketnilay if i click on tile (in the pic: if i click any one of the printer) it should open a new dashboard. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 09:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489921#M32090</guid>
      <dc:creator>vinothn</dc:creator>
      <dc:date>2020-03-12T09:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489922#M32091</link>
      <description>&lt;P&gt;@vinothn since the html panels have their unique ids, you can code custom drilldown from html panel using jQuery. Refer to an older answer of mine on similar lines: &lt;A href="https://answers.splunk.com/answers/741114/how-to-drill-down-from-custom-result-value-1.html"&gt;https://answers.splunk.com/answers/741114/how-to-drill-down-from-custom-result-value-1.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please try out and confirm. Do upvote the answers and comments that helped.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 11:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489922#M32091</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-12T11:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489923#M32092</link>
      <description>&lt;P&gt;@genesiusj @vinothn &lt;/P&gt;

&lt;P&gt;Turns out this is &lt;CODE&gt;purely Simple XML&lt;/CODE&gt; problem (with &lt;CODE&gt;CSS override if required&lt;/CODE&gt;). &lt;CODE&gt;No &amp;lt;html&amp;gt; table and JS Extension required&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;I used the following approach:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Build a Splunk &lt;CODE&gt;table&lt;/CODE&gt; with Multi-value cells (You can arrange as single Row or single column). For each Printer multiple values are &lt;CODE&gt;Printer Name, Status, Status Type, Date and Time&lt;/CODE&gt;. &lt;/LI&gt;
&lt;LI&gt;Apply color to table cell using expression color palette based on regex match for Status Type. Since &lt;CODE&gt;case()&lt;/CODE&gt; is not available nested &lt;CODE&gt;if()&lt;/CODE&gt; can be applied for setting more than two color ranges. Refer to answer. Refer to older answer: &lt;A href="https://answers.splunk.com/answers/668588/how-to-add-custom-color-to-blank-cell.html"&gt;https://answers.splunk.com/answers/668588/how-to-add-custom-color-to-blank-cell.html&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Enable table drilldown. &lt;CODE&gt;$click.value$&lt;/CODE&gt; gives &lt;CODE&gt;all values in the multi-value cell clicked with each value separated by comma&lt;/CODE&gt; and &lt;CODE&gt;$click.value2$&lt;/CODE&gt; gives specific value in the multi-valued cell clicked.&lt;/LI&gt;
&lt;LI&gt;Apply custom CSS to format Table cell look as a tile as per the requirement.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8515iA555D3A8E5DB4D95/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Following is the Simple XML code required.&lt;BR /&gt;
&lt;CODE&gt;PS: Supports drilldown and requires no JS. Also supports sorting by Printer Name by default table sorting property :)&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Table with Color and Format&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #table_tile table tbody{
            display:flex;
            flex-wrap: wrap;
          }
          #table_tile table tbody tr{
            margin-right:10px;
            margin-bottom:10px;
          }
          #table_tile table tbody tr td{
            width: 180px;
            text-align: center;
          }
        &amp;lt;/style&amp;gt;
        &amp;lt;div&amp;gt;
          &amp;lt;div&amp;gt;Clicked Value in Cell (click.value):$click.value$&amp;lt;/div&amp;gt;
          &amp;lt;div&amp;gt;Clicked Cell Values (click.value2):$click.value2$&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;table id="table_tile"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults 
| eval status="printing,deleting,error;printing,error;door open,error;restarted;printed,deleting;error,offline;error,offline;spooling,paused" 
| makemv status delim=";" 
| mvexpand status 
| eval delta=500 
| streamstats count as sno 
| eval printer="printer".sno 
| eval delta=delta*sno 
| eval _time=_time-delta 
| fields - delta sno 
| eval timeConvDate=strftime(_time,"%a %m-%d-%Y") 
| eval timeConvTime=strftime(_time,"%H:%M:%S") 
| eval statusClass=case(status="printing,deleting,error","status_fatal",status="error,toner low","status_fatal",status="printing,error","status_fatal",status="paper jam","status_fatal",status="no toner","status_fatal",status="error,offline","status_fatal",status="error","status_fatal",
    status="door open,error","status_critical",status="spooling,paused","status_critical",status="paused","status_critical",status="out of paper","status_critical",status="error,out of paper","status_critical",status="offline","status_critical",status="door open","status_critical",
    status="toner low","status_low",status="restarted","status_low",
    status="printing,deleting","status_info",status="printed,deleting","status_info",status="printing,printed,deleting","status_info",status="error,warming up","status_info",status="spooling,printing","status_info",status="error,offline","status_info",status="spooling","status_info",status="printing","status_info",status="normal","status_info") 
| sort - statusClass, status 
| table printer, status, statusClass, timeConvDate, timeConvTime
| eval "Printer Info"=printer."###".status."###".statusClass."###".timeConvDate."###".timeConvTime
| fields "Printer Info"
| makemv "Printer Info" delim="###"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;format type="color" field="Printer Info"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;if (match(value,"status_fatal"), "#DC4E41", if(match(value,"^status_critical"),"#F8BE34", if(match(value,"status_low"),"#62B3B2","#B6C75A")))&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;set token="click.value"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
          &amp;lt;set token="click.value2"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 12:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489923#M32092</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-12T12:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489924#M32093</link>
      <description>&lt;P&gt;@niketnilay &lt;BR /&gt;
Thank you.&lt;BR /&gt;
In my original XML, I was able to color the cells without JS, that is why I kept pushing that.&lt;BR /&gt;
This looks absolutely simple, and I am testing now with my data.&lt;BR /&gt;
I'll get back shortly about that.&lt;/P&gt;

&lt;P&gt;Meanwhile, can you recommend any good resources (online/books) for learning JS (no experience), CSS (limited, old experience), and HTML (better, old experience)? I have so many ideas for dashboards, and I know that not knowing these 3 skills is going to hamper my efforts. Plus, is there any documentation/site listing the  JS, CSS, and HML properties, etc., not available within Splunk?&lt;/P&gt;

&lt;P&gt;Thanks again for all your help and knowledge. Be back before end of day with the results with my data.&lt;BR /&gt;
God bless,&lt;BR /&gt;
Genesius&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489924#M32093</guid>
      <dc:creator>genesiusj</dc:creator>
      <dc:date>2020-03-12T13:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with css, html, js Formatting Search Output</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489925#M32094</link>
      <description>&lt;P&gt;Little bit tweak to the above code with &lt;A href="https://unicode.org/emoji/charts/full-emoji-list.html"&gt;Unicode characters&lt;/A&gt; and I dont need Status Indicator anymore.&lt;BR /&gt;
Refer to one of my older answers with Unicode characters in the table: &lt;A href="https://answers.splunk.com/answers/681268/one-rangemap-column-for-multiple-values.html"&gt;https://answers.splunk.com/answers/681268/one-rangemap-column-for-multiple-values.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8516i34E9120C5093450D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;As per the previous code only unicode icons in SPL and colorPalette expression have been changed. Since Splunk Answers does not allow all Unicode characters to be posted posting screenshot of the code.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8517iB5F20AA8C038DADB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 13:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-css-html-js-Formatting-Search-Output/m-p/489925#M32094</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-03-12T13:59:29Z</dc:date>
    </item>
  </channel>
</rss>

