<?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: How to pre-populate text boxes by passing tokens using simple xml in Splunk 6? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/559606#M92548</link>
    <description>&lt;P&gt;I know it was many years ago, but your answer helped, so thank you for your response&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147" target="_self"&gt;&lt;SPAN class="login-bold"&gt;somesoni2.&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;I did have to update the XML code for compliance with the recent version of Splunk, but that was simple.&lt;BR /&gt;&lt;BR /&gt;My situation is a bit different in that I need to extract a segment from a clicked field (UID) to become the form.field input for my drilldown page.&lt;BR /&gt;&lt;BR /&gt;This doesn't seem hard, but I cannot make it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;BR /&gt;Example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;My UID field looks like ABC123:456456:99887766 and I need to pass the first segment (ABC123) to the drilldown page when a user clicks on that table row. To ensure uniqueness, this UID field is a concatenation of several fields within my algorithm. The original field is not available since it gets consumed with stats commands.&lt;BR /&gt;&lt;BR /&gt;I have attempted within the &amp;lt;drilldown&amp;gt; section of the main page to perform a rex extraction and then use the resulting token within the same &amp;lt;drilldown&amp;gt; section. But the rex extraction does not seem to execute.&lt;BR /&gt;&lt;BR /&gt;I also tried performing the rex extraction within the drilldown page using the passed UID value. I can extract the value but can't seem to populate the form with the value.&lt;BR /&gt;&lt;BR /&gt;Thank you for any help you can provide.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 14:30:35 GMT</pubDate>
    <dc:creator>actionabledata</dc:creator>
    <dc:date>2021-07-15T14:30:35Z</dc:date>
    <item>
      <title>How to pre-populate text boxes by passing tokens using simple xml in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/169581#M34270</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a dashboard that allows users to drilldown to a page where they can actually re-submit receipts to the customer.  Since the recipient emails are being logged, I want to auto populate the To and CC fields in the email page rather than having them manually add them (there can be a lot of emails :))&lt;/P&gt;

&lt;P&gt;How can I pre-populate text boxes in Splunk 6 using simple xml?&lt;/P&gt;

&lt;P&gt;Any insight would be much appreciated.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 16:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/169581#M34270</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2014-08-04T16:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to pre-populate text boxes by passing tokens using simple xml in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/169582#M34271</link>
      <description>&lt;P&gt;Try something like this (run anywhere sample with two text boxes)&lt;/P&gt;

&lt;P&gt;Main page(page1.xml)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Page1&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;    
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Sourcetype Distribution&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;index=_internal earliest=-1h@h | stats count by sourcetype component&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime/&amp;gt;
        &amp;lt;latestTime/&amp;gt;
        &amp;lt;drilldown&amp;gt;
  &amp;lt;link&amp;gt;
  /app/search/page2?form.sourcetype=$row.sourcetype$&amp;amp;amp;form.component=$row.component$
  &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;  
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;drilldown page (page2.xml)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Page2&amp;lt;/label&amp;gt;
  &amp;lt;fieldset&amp;gt;
  &amp;lt;input type="text" token="sourcetype"&amp;gt;
    &amp;lt;label&amp;gt;sourcetype&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;   
  &amp;lt;/input&amp;gt;
     &amp;lt;input type="text" token="component"&amp;gt;
    &amp;lt;label&amp;gt;component&amp;lt;/label&amp;gt;
    &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;   
  &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;   
      &amp;lt;event&amp;gt;
        &amp;lt;title&amp;gt;Events by Sourcetype and component&amp;lt;/title&amp;gt;
        &amp;lt;searchString&amp;gt;index=_internal sourcetype=$sourcetype$ component="$component$" earliest=-1h@h&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime/&amp;gt;
        &amp;lt;latestTime/&amp;gt;
      &amp;lt;/event&amp;gt;   
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:00:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/169582#M34271</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-04T18:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to pre-populate text boxes by passing tokens using simple xml in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/169583#M34272</link>
      <description>&lt;P&gt;Solved - I used the default tag with the fields as token for the value.  The only caveat I discovered was that I actually need to table those values in the first page before I can pass it to the drill-down page.  &lt;/P&gt;

&lt;P&gt;&lt;INPUT type="text" token="emailTo" /&gt;&lt;BR /&gt;
    &lt;LABEL&gt;To:&lt;/LABEL&gt;&lt;BR /&gt;
        &lt;DEFAULT&gt;$emailTo$&lt;/DEFAULT&gt;&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/169583#M34272</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2014-08-04T18:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to pre-populate text boxes by passing tokens using simple xml in Splunk 6?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/559606#M92548</link>
      <description>&lt;P&gt;I know it was many years ago, but your answer helped, so thank you for your response&amp;nbsp;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147" target="_self"&gt;&lt;SPAN class="login-bold"&gt;somesoni2.&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;I did have to update the XML code for compliance with the recent version of Splunk, but that was simple.&lt;BR /&gt;&lt;BR /&gt;My situation is a bit different in that I need to extract a segment from a clicked field (UID) to become the form.field input for my drilldown page.&lt;BR /&gt;&lt;BR /&gt;This doesn't seem hard, but I cannot make it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;BR /&gt;Example: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;My UID field looks like ABC123:456456:99887766 and I need to pass the first segment (ABC123) to the drilldown page when a user clicks on that table row. To ensure uniqueness, this UID field is a concatenation of several fields within my algorithm. The original field is not available since it gets consumed with stats commands.&lt;BR /&gt;&lt;BR /&gt;I have attempted within the &amp;lt;drilldown&amp;gt; section of the main page to perform a rex extraction and then use the resulting token within the same &amp;lt;drilldown&amp;gt; section. But the rex extraction does not seem to execute.&lt;BR /&gt;&lt;BR /&gt;I also tried performing the rex extraction within the drilldown page using the passed UID value. I can extract the value but can't seem to populate the form with the value.&lt;BR /&gt;&lt;BR /&gt;Thank you for any help you can provide.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 14:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-pre-populate-text-boxes-by-passing-tokens-using-simple/m-p/559606#M92548</guid>
      <dc:creator>actionabledata</dc:creator>
      <dc:date>2021-07-15T14:30:35Z</dc:date>
    </item>
  </channel>
</rss>

