<?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 How to put values of xml files in a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148795#M27027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While scripting how can we put the value of our configuration xml file into variable,&lt;/P&gt;&lt;P&gt;Below is the code for your reference,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Directory;&lt;BR /&gt;&lt;B&gt;// Start of [configuration.xml] LOAD statements&lt;BR /&gt;&lt;/B&gt;&lt;I&gt;Configuration:&lt;BR /&gt;&lt;/I&gt;&lt;B&gt;LOAD&lt;/B&gt; mn, PrePath &lt;B&gt;FROM&lt;/B&gt; configuration.xml (XmlSimple, Table is [Configuration]);&lt;BR /&gt;&lt;I&gt;&lt;/I&gt;&lt;B&gt;// End of [configuration.xml] LOAD statements&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;let&lt;/B&gt; mn = ''; // want to put value of field mn in this variable&lt;BR /&gt;&lt;B&gt;let&lt;/B&gt; prepath = 'D:\QlikView'; // want to put value of field prepath in this variable&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;let&lt;/B&gt; CurrentFileName= 'ABCCHB' &amp;amp; right('00' &amp;amp;&lt;B&gt;&lt;I&gt;'$(CurrentDay)'&lt;/I&gt;&lt;/B&gt;, 2) &amp;amp; '.dat' ;&lt;BR /&gt;&lt;B&gt;let&lt;/B&gt; path= &lt;B&gt;&lt;I&gt;'$(prepath)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\Input' &amp;amp; &lt;B&gt;&lt;I&gt;'$(mn)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\CC\Conv' ;&lt;BR /&gt;&lt;B&gt;let&lt;/B&gt; Outputpath= &lt;B&gt;&lt;I&gt;'$(prepath)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\Output' &amp;amp; &lt;B&gt;&lt;I&gt;'$(mn)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\CC\QVDs' ; &lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jul 2009 20:40:30 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2009-07-08T20:40:30Z</dc:date>
    <item>
      <title>How to put values of xml files in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148795#M27027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While scripting how can we put the value of our configuration xml file into variable,&lt;/P&gt;&lt;P&gt;Below is the code for your reference,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Directory;&lt;BR /&gt;&lt;B&gt;// Start of [configuration.xml] LOAD statements&lt;BR /&gt;&lt;/B&gt;&lt;I&gt;Configuration:&lt;BR /&gt;&lt;/I&gt;&lt;B&gt;LOAD&lt;/B&gt; mn, PrePath &lt;B&gt;FROM&lt;/B&gt; configuration.xml (XmlSimple, Table is [Configuration]);&lt;BR /&gt;&lt;I&gt;&lt;/I&gt;&lt;B&gt;// End of [configuration.xml] LOAD statements&lt;BR /&gt;&lt;BR /&gt;&lt;/B&gt;&lt;B&gt;let&lt;/B&gt; mn = ''; // want to put value of field mn in this variable&lt;BR /&gt;&lt;B&gt;let&lt;/B&gt; prepath = 'D:\QlikView'; // want to put value of field prepath in this variable&lt;B&gt;&lt;BR /&gt;&lt;BR /&gt;let&lt;/B&gt; CurrentFileName= 'ABCCHB' &amp;amp; right('00' &amp;amp;&lt;B&gt;&lt;I&gt;'$(CurrentDay)'&lt;/I&gt;&lt;/B&gt;, 2) &amp;amp; '.dat' ;&lt;BR /&gt;&lt;B&gt;let&lt;/B&gt; path= &lt;B&gt;&lt;I&gt;'$(prepath)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\Input' &amp;amp; &lt;B&gt;&lt;I&gt;'$(mn)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\CC\Conv' ;&lt;BR /&gt;&lt;B&gt;let&lt;/B&gt; Outputpath= &lt;B&gt;&lt;I&gt;'$(prepath)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\Output' &amp;amp; &lt;B&gt;&lt;I&gt;'$(mn)'&lt;/I&gt;&lt;/B&gt; &amp;amp; '\CC\QVDs' ; &lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;B&gt;&lt;/B&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 20:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148795#M27027</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-07-08T20:40:30Z</dc:date>
    </item>
    <item>
      <title>How to put values of xml files in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148796#M27028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shumail,&lt;/P&gt;&lt;P&gt;Just do&lt;/P&gt;&lt;P&gt;let nm_field=peek('nm');&lt;/P&gt;&lt;P&gt;after loading the configuration.xml file.&lt;/P&gt;&lt;P&gt;The nm_field variable will store the latest value of nm (i supose you only have one value for nm)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joao&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 21:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148796#M27028</guid>
      <dc:creator />
      <dc:date>2009-07-08T21:23:12Z</dc:date>
    </item>
    <item>
      <title>How to put values of xml files in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148797#M27029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gordon,&lt;/P&gt;&lt;P&gt;Thanks for the function, &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;. but i have tried it in a different way as below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;$(include=Configuration.txt);&lt;BR /&gt;&lt;BR /&gt;let path = '$(prepath)' &amp;amp; '\Input\' &amp;amp; '$(mn)' &amp;amp; '\Cards\Conventional\' ;&lt;BR /&gt;let Outputpath= '$(prepath)' &amp;amp; '\Output\' &amp;amp; '$(mn)' &amp;amp; '\Cards\QVDs\' ;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards&lt;BR /&gt;Shumail Hussain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jul 2009 22:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-put-values-of-xml-files-in-a-variable/m-p/148797#M27029</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2009-07-08T22:01:07Z</dc:date>
    </item>
  </channel>
</rss>

