<?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: Using $foo$ to link views together in HTML module in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-foo-to-link-views-together-in-HTML-module/m-p/48439#M2656</link>
    <description>&lt;P&gt;When you're using a key in a Search or PostProcess module, you will want to use $database$, and backslashes in the value will automatically get escaped as you see.  &lt;/P&gt;

&lt;P&gt;However,  when you're specifying a key for the Redirector module, putting a key directly in an anchor tag like this within an HTML module, or in any way specifying something that ends up in a URL, you always want to use the "rawValue" version instead -- in this case $database.rawValue$.&lt;/P&gt;

&lt;P&gt;This is covered in the Sideview Utils documentation, and in a little more detail than I'm giving here.  Within the app menu, go to &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"key techniques &amp;gt; linking views together"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;There are several pages in there and note that on the second page the notes talk about the importance of $foo$ vs $foo.rawValue$ and how this relates to backslash-escaping. &lt;/P&gt;

&lt;P&gt;Also, to anyone else reading, if you've only read the reference documentation in /en-US/modules, make sure to go back and read through the actual documentation in the app itself because there is a lot of important information there, so much that important details are fairly easy to miss the first time through. &lt;/P&gt;

&lt;P&gt;Hope this helps. &lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2011 05:57:27 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2011-07-26T05:57:27Z</dc:date>
    <item>
      <title>Using $foo$ to link views together in HTML module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-foo-to-link-views-together-in-HTML-module/m-p/48438#M2655</link>
      <description>&lt;P&gt;I am trying to combine a Pulldown with a HTML module to link to another module.  Here is the code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;module name="TextField" layoutPanel="panel_row1_col1_grp1" autoRun="True"&amp;gt;
        &amp;lt;param name="name"&amp;gt;database&amp;lt;/param&amp;gt;
        &amp;lt;param name="width"&amp;gt;400px&amp;lt;/param&amp;gt;
        &amp;lt;param name="label"&amp;gt;Database Name: &amp;lt;/param&amp;gt;

        &amp;lt;module name="HTML" layoutPanel="panel_row1_col1_grp1" autoRun="True"&amp;gt;
            &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[&amp;lt;p&amp;gt;Information about this database is also available in the &amp;lt;a href="other_dashboard?database=$database$"&amp;gt;Other Dashboard&amp;lt;/a&amp;gt; page.&amp;lt;/p&amp;gt;]]&amp;gt;&amp;lt;/param&amp;gt;
        &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unfortunately, the $database$ is not represented properly when rendering, causing the wrong selection in the other dashboard.  Specifical a single back-slash is replaced by a double back-slash, so WIN-SERVER\database becomes WIN-SERVER\\database.&lt;/P&gt;

&lt;P&gt;How can I fix this?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 00:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-foo-to-link-views-together-in-HTML-module/m-p/48438#M2655</guid>
      <dc:creator>ahall_splunk</dc:creator>
      <dc:date>2011-07-26T00:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using $foo$ to link views together in HTML module</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-foo-to-link-views-together-in-HTML-module/m-p/48439#M2656</link>
      <description>&lt;P&gt;When you're using a key in a Search or PostProcess module, you will want to use $database$, and backslashes in the value will automatically get escaped as you see.  &lt;/P&gt;

&lt;P&gt;However,  when you're specifying a key for the Redirector module, putting a key directly in an anchor tag like this within an HTML module, or in any way specifying something that ends up in a URL, you always want to use the "rawValue" version instead -- in this case $database.rawValue$.&lt;/P&gt;

&lt;P&gt;This is covered in the Sideview Utils documentation, and in a little more detail than I'm giving here.  Within the app menu, go to &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;"key techniques &amp;gt; linking views together"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;There are several pages in there and note that on the second page the notes talk about the importance of $foo$ vs $foo.rawValue$ and how this relates to backslash-escaping. &lt;/P&gt;

&lt;P&gt;Also, to anyone else reading, if you've only read the reference documentation in /en-US/modules, make sure to go back and read through the actual documentation in the app itself because there is a lot of important information there, so much that important details are fairly easy to miss the first time through. &lt;/P&gt;

&lt;P&gt;Hope this helps. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 05:57:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Using-foo-to-link-views-together-in-HTML-module/m-p/48439#M2656</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-07-26T05:57:27Z</dc:date>
    </item>
  </channel>
</rss>

