<?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 Displaying an unstructured plain text document in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206116#M62348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, you are a magic man! That works a treat; many thanks.&lt;/P&gt;&lt;P&gt;Now to get it to work in the context of my wider project!&lt;/P&gt;&lt;P&gt;- Christopher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Apr 2011 10:12:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-11T10:12:52Z</dc:date>
    <item>
      <title>Displaying an unstructured plain text document</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206114#M62346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to write a report which allows the user to view the contents of a plain text document. I have a table with two columns: document title; file location. What I want is when the user has selected only one document it displays this. The closest I have found is the president picture in the US presidents example.&lt;/P&gt;&lt;P&gt;My attempts so far has not been too successful; I can display the contents of a file that I have hardcoded the location of and I can display paths both loaded from the filesystem and matched up to the contents of my table but I cannot complete the circle.&lt;/P&gt;&lt;P&gt;Here is what I have written:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; A as Title,&lt;BR /&gt; B as Name&lt;BR /&gt;FROM&lt;BR /&gt;&lt;C&gt;&lt;BR /&gt;(ooxml, no labels);&lt;/C&gt;&lt;/P&gt;&lt;P&gt;LOAD @1&lt;BR /&gt;FROM&lt;BR /&gt;[1.txt]&lt;BR /&gt;(txt, codepage is 1252, no labels);&lt;/P&gt;&lt;P&gt;for each File in filelist ('*.txt')&lt;BR /&gt; Load '$(File)' as Name,&lt;BR /&gt; FileSize( '$(File)' ) as Size,&lt;BR /&gt; FileTime( '$(File)' ) as FileTime autogenerate 1;&lt;BR /&gt;next File&lt;/P&gt;&lt;P&gt;for each File in filelist ('*.txt')&lt;BR /&gt; INFO LOAD * inline [&lt;BR /&gt; Name, Body&lt;BR /&gt; $(File), $(File)&lt;BR /&gt; ];&lt;BR /&gt;next File&lt;/P&gt;&lt;P&gt;Does anyone know how I can get the actual body of the text file into "Body" on the last line? Then I can load that into a text object and, with any luck, Bob will be my uncle.&lt;/P&gt;&lt;P&gt;Thanks - Christopher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 16:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206114#M62346</guid>
      <dc:creator />
      <dc:date>2011-04-08T16:37:22Z</dc:date>
    </item>
    <item>
      <title>Displaying an unstructured plain text document</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206115#M62347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the contents to display in a text box, use script something like this:&lt;/P&gt;&lt;P&gt;FOR EACH file in filelist('*.txt')&lt;BR /&gt; Contents:&lt;BR /&gt; LOAD '$(file)' as filename,&lt;BR /&gt; @1:n as TextLine,&lt;BR /&gt; RecNo() as LineNo&lt;BR /&gt; FROM [$(file)]&lt;BR /&gt; (fix, codepage is 1252);&lt;BR /&gt; ;&lt;BR /&gt;NEXT file&lt;/P&gt;&lt;P&gt;In your textbox use the expression:&lt;/P&gt;&lt;P&gt;=if(GetPossibleCount(filename)=1, concat(TextLine,chr(10), LineNo), '')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 18:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206115#M62347</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-04-08T18:15:15Z</dc:date>
    </item>
    <item>
      <title>Displaying an unstructured plain text document</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206116#M62348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, you are a magic man! That works a treat; many thanks.&lt;/P&gt;&lt;P&gt;Now to get it to work in the context of my wider project!&lt;/P&gt;&lt;P&gt;- Christopher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 10:12:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-an-unstructured-plain-text-document/m-p/206116#M62348</guid>
      <dc:creator />
      <dc:date>2011-04-11T10:12:52Z</dc:date>
    </item>
  </channel>
</rss>

