<?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: htm link to display/download  xml-field in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88239#M5770</link>
    <description>&lt;P&gt;Yes thats exactly what I want, having a new window displaying xml from on field...&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2013 05:44:13 GMT</pubDate>
    <dc:creator>sbsbb</dc:creator>
    <dc:date>2013-04-10T05:44:13Z</dc:date>
    <item>
      <title>htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88236#M5767</link>
      <description>&lt;P&gt;I have a field "xml", with the content of an xml-file...&lt;BR /&gt;
I want to make a link, so that it is opening a new windows, with the xml-content in it.&lt;/P&gt;

&lt;P&gt;In fact sideview already do this, but only for the module code :&lt;BR /&gt;
&lt;A href="http://splunk:8000/en-US/custom/sideview_utils/view/show?app=sideview_utils&amp;amp;view=pulldown4_dynamic_postprocess"&gt;http://splunk:8000/en-US/custom/sideview_utils/view/show?app=sideview_utils&amp;amp;view=pulldown4_dynamic_postprocess&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2013 12:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88236#M5767</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-04-09T12:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88237#M5768</link>
      <description>&lt;P&gt;Can you clarify your question?   It's not entirely clear what you're asking.   Do you want to make a simple link or do you want to make a clickable table? When the user clicks this you want to pass the string value of your &lt;CODE&gt;xml&lt;/CODE&gt; field, but do you want to pass it to another view or to another web based application?  by module code do you mean the Splunk view XML?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2013 17:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88237#M5768</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-04-09T17:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88238#M5769</link>
      <description>&lt;P&gt;Oh I see!  You want the XML content to be displayed in the new window.  Yes this can be done.  I'll try and post an answer soon.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2013 23:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88238#M5769</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-04-09T23:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88239#M5770</link>
      <description>&lt;P&gt;Yes thats exactly what I want, having a new window displaying xml from on field...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 05:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88239#M5770</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-04-10T05:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88240#M5771</link>
      <description>&lt;P&gt;Hi, could you find something about that ?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2013 13:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88240#M5771</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-04-22T13:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88241#M5772</link>
      <description>&lt;P&gt;There are two ways broadly speaking.&lt;/P&gt;

&lt;P&gt;The first is to do what the Sideview Utils app does - basically write&lt;BR /&gt;
a custom controller in python.    It would be a completely different&lt;BR /&gt;
custom controller than the Sideview one, because the Sideview one only&lt;BR /&gt;
knows how to go get the XML source of a Splunk view and display it.&lt;BR /&gt;
But basically you would use a Redirector module to pass appropriate arguments to the controller and it would display the XML field.   Probaby easiest arguments to pass are the existing searchid $results.sid$, and the offset of the given row, and the field name. &lt;/P&gt;

&lt;P&gt;The other way is to write custom javascript.   You would open a new&lt;BR /&gt;
window when the element is clicked but then our javascript would immediately rewrite the HTML contents of that window so that it displayed the XML string.&lt;/P&gt;

&lt;P&gt;I delayed responding thinking I might have time to post specifics illustrating the second&lt;BR /&gt;
way, or that I might think of a way to do it without any custom code.  Sorry but I don't think I have time to make a working prototype for you. &lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2013 20:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88241#M5772</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-04-25T20:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: htm link to display/download  xml-field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88242#M5773</link>
      <description>&lt;P&gt;Thx. &lt;BR /&gt;
It sound complicated for my know-how level... I hope I can achieve it or let it developp by so...&lt;/P&gt;

&lt;P&gt;Do you can tell me a "Controller" name, I can look at in Splunk, to have an example ?&lt;/P&gt;

&lt;P&gt;I've found &lt;A href="http://davidwalsh.name/downloadify"&gt;http://davidwalsh.name/downloadify&lt;/A&gt; that seems to do at least a part of the job... in case of a js workaround&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 11:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/htm-link-to-display-download-xml-field/m-p/88242#M5773</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-05-01T11:22:55Z</dc:date>
    </item>
  </channel>
</rss>

