<?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 Macro to append script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257972#M97430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below macro in (first.qvw) will read a text file and writes it to another (recon.qvw) file. The text file contains SQL select statements. I am facing a issue with below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When I run the macro it just opens the recon.qvw file, but the script is not getting added. Please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub UpdateScriptFromfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set FSO= createobject("Scripting.FilesystemObject")&lt;BR /&gt;set openReconFile=FSO.OpenTextFile("C:\Qlikview\buildsql.txt")&lt;BR /&gt;scriptBackup=openReconFile.ReadAll&lt;BR /&gt;openReconFile.Close&lt;BR /&gt;msgbox(scriptBackup)&lt;BR /&gt;set newdoc = GetObject("C:\Qlikview\recon.qvw")&lt;BR /&gt;newdoc.GetProperties.Script = scriptBackup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2011 15:38:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-13T15:38:42Z</dc:date>
    <item>
      <title>Macro to append script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257972#M97430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below macro in (first.qvw) will read a text file and writes it to another (recon.qvw) file. The text file contains SQL select statements. I am facing a issue with below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When I run the macro it just opens the recon.qvw file, but the script is not getting added. Please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub UpdateScriptFromfile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set FSO= createobject("Scripting.FilesystemObject")&lt;BR /&gt;set openReconFile=FSO.OpenTextFile("C:\Qlikview\buildsql.txt")&lt;BR /&gt;scriptBackup=openReconFile.ReadAll&lt;BR /&gt;openReconFile.Close&lt;BR /&gt;msgbox(scriptBackup)&lt;BR /&gt;set newdoc = GetObject("C:\Qlikview\recon.qvw")&lt;BR /&gt;newdoc.GetProperties.Script = scriptBackup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257972#M97430</guid>
      <dc:creator />
      <dc:date>2011-09-13T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Macro to append script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257973#M97431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;sub UpdateScriptFromfile&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;set FSO= createobject("Scripting.FilesystemObject")&lt;BR /&gt;set openReconFile=FSO.OpenTextFile("C:\Qlikview\buildsql.txt")&lt;BR /&gt;scriptBackup=openReconFile.ReadAll&lt;BR /&gt;openReconFile.Close&lt;BR /&gt;msgbox(scriptBackup)&lt;BR /&gt;set newdoc = GetObject("C:\Qlikview\recon.qvw")&lt;BR /&gt;set abc = newdoc.GetProperties&lt;BR /&gt;abc.Script = scriptBackup&lt;BR /&gt;newdoc.setproperties abc&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 05:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257973#M97431</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-09-14T05:25:20Z</dc:date>
    </item>
    <item>
      <title>Macro to append script</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257974#M97432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you so much Kaushik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked with your change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 05:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-append-script/m-p/257974#M97432</guid>
      <dc:creator />
      <dc:date>2011-09-14T05:33:22Z</dc:date>
    </item>
  </channel>
</rss>

