<?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: Splunk &amp;lt;fields&amp;gt; equivalent in JavaScript in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605209#M49722</link>
    <description>&lt;P&gt;Awesome. That worked. Thank you so much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;myTable&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;settings&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"fields"&lt;/SPAN&gt;&lt;SPAN&gt;, [&lt;/SPAN&gt;&lt;SPAN&gt;"a"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"b"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"c"&lt;/SPAN&gt;&lt;SPAN&gt;]); &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;after initializing myTable (TableView)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 22:34:28 GMT</pubDate>
    <dc:creator>deepikagooty</dc:creator>
    <dc:date>2022-07-11T22:34:28Z</dc:date>
    <item>
      <title>Splunk &lt;fields&gt; equivalent in JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605190#M49718</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a table on my splunk dashboard. I have a search to get the data and I am using fields to filter out the columns that I want to see on my dashboard. I observed that, even if I filter out a couple of columns to display, I am still able to use the other column data&amp;nbsp;(column c or d from below example) that I am not displaying for other purpose. Below is the format that I am using for a splunk table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;| dbxquery connection=connection query="SELECT a, b, c, d FROM t1"
&amp;lt;/query&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;fields&amp;gt;["a", "b"]&amp;lt;/fields&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I have a requirement to create a custom Splunk table using JavaScript. I was able to do the same but I am not sure how to use the &amp;lt;fields&amp;gt; provided by Splunk in JavaScript. The problem that I observed with JavaScript table is that, If I am not displaying a particular column, I will not be able to use that column data for other operations. I basically want to display just a, b columns from my JavaScript query but at the same time utilize the c, d column data for other operations. Kindly suggest a solution for this.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 17:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605190#M49718</guid>
      <dc:creator>deepikagooty</dc:creator>
      <dc:date>2022-07-11T17:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk &lt;fields&gt; equivalent in JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605208#M49721</link>
      <description>&lt;P&gt;If you are using a TableView in JS, it also appears to support the fields attribute&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_table.html" target="_blank"&gt;https://docs.splunk.com/DocumentationStatic/WebFramework/1.0/compref_table.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 22:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605208#M49721</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-07-11T22:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk &lt;fields&gt; equivalent in JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605209#M49722</link>
      <description>&lt;P&gt;Awesome. That worked. Thank you so much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;myTable&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;settings&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;set&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"fields"&lt;/SPAN&gt;&lt;SPAN&gt;, [&lt;/SPAN&gt;&lt;SPAN&gt;"a"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"b"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"c"&lt;/SPAN&gt;&lt;SPAN&gt;]); &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;after initializing myTable (TableView)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 22:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-lt-fields-gt-equivalent-in-JavaScript/m-p/605209#M49722</guid>
      <dc:creator>deepikagooty</dc:creator>
      <dc:date>2022-07-11T22:34:28Z</dc:date>
    </item>
  </channel>
</rss>

