<?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 Batch file and Dodument reload in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143504#M22732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that it is because you're trying to use "Save" after reducing the data. It probably will work if you use "SaveAs" in the second part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 03:40:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-05-07T03:40:31Z</dc:date>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143499#M22727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running a batch file to reload the documnet with variable passed to documnet.&lt;/P&gt;&lt;P&gt;cd e:\qv\datasource\ProviderAnalysis&lt;BR /&gt;"C:\Program Files\Qlikview\qv.exe" /r /vvDataSubset=Pract ProviderInterfaceTest.qvw&lt;BR /&gt;"C:\Program Files\Qlikview\qv.exe" /r /vvDataSubset=Fac ProviderInterfaceTest.qvw&lt;/P&gt;&lt;P&gt;It loads it fine, the issue i have is it asks me once documet starts loading it prompts me for SaveAs option to ave the documnet. I am using have macro in which i use following option to create file. I am not sure what am i missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument. &lt;STRONG&gt;SaveAs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;"E:\qv\production\Quick Reports - " &amp;amp; vDataSubset.GetContent. &lt;B&gt;String&lt;/B&gt; &amp;amp; ".qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointer to this would be great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in andvance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 02:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143499#M22727</guid>
      <dc:creator />
      <dc:date>2009-05-07T02:00:28Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143500#M22728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To troubleshoot, try to add a test line in your macro before (or instead of) SaveAs:&lt;BR /&gt;msgbox("E:\qv\production\Quick Reports - " &amp;amp; vDataSubset.GetContent. &lt;B&gt;String&lt;/B&gt; &amp;amp; ".qvw" )&lt;BR /&gt;and see if it gives your the correct file name.&lt;BR /&gt;Also it bothers me that the macro line in your post is broken into two lines. Is it one line in your actual macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 02:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143500#M22728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-07T02:16:58Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143501#M22729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;It gives me correct file name and yes it is one line in macro. I have reduce data in macro. I guess that is why it is prompting me to saveas.&lt;/P&gt;&lt;P&gt;Any idea please.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 03:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143501#M22729</guid>
      <dc:creator />
      <dc:date>2009-05-07T03:18:22Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143502#M22730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm..., Maybe this is because you're saving over the existing file with the same name(?) To test, try to delete the existing file manually, and run the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 03:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143502#M22730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-07T03:23:22Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143503#M22731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;I have one main file, I reload that file and then split in to two file with reduced data, the macro is on postreload.&lt;/P&gt;&lt;P&gt;SUB PostLoad&lt;/P&gt;&lt;P&gt;Dim lvDataSubset&lt;/P&gt;&lt;P&gt;Set vDataSubset = ActiveDocument.Variables("vDataSubset")&lt;BR /&gt; Set vDefaultOutput = ActiveDocument.Variables("vDefaultOutput")&lt;/P&gt;&lt;P&gt;'************************** Reduce Data to appropriate provider class *************&lt;/P&gt;&lt;P&gt;set cs = ActiveDocument.GetField("OutputFormatName")&lt;BR /&gt;set prop = cs.GetProperties&lt;BR /&gt;prop.OneAndOnlyOne = false&lt;BR /&gt;cs.SetProperties prop&lt;/P&gt;&lt;P&gt;ActiveDocument.SaveAs "E:\qv\production\Quick Reports - " &amp;amp; vDataSubset.GetContent.String &amp;amp; ".qvw"&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll true&lt;BR /&gt;ActiveDocument.Fields("ProviderClass").Select vDataSubset.GetContent.String&lt;BR /&gt;ActiveDocument.Fields("ProviderStatus").Select "Active", true&lt;BR /&gt;ActiveDocument.ReduceData false&lt;/P&gt;&lt;P&gt;'************************** Reset Selections and Default Output version *********&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("ProviderClass").Select vDataSubset.GetContent.String&lt;BR /&gt;ActiveDocument.Fields("ProviderStatus").Select "Active"&lt;BR /&gt;ActiveDocument.Fields("OutputFormatName").Select "='" &amp;amp; vDefaultOutput.GetContent.String &amp;amp; "'"&lt;BR /&gt;ActiveDocument.Fields("OutputDimensionDescripton").SelectPossible&lt;/P&gt;&lt;P&gt;SetDefaults("ProviderClass")&lt;BR /&gt;SetDefaults("ProviderStatus")&lt;BR /&gt;SetDefaults("OutputFormatName")&lt;/P&gt;&lt;P&gt;ChooseOutputFormat&lt;/P&gt;&lt;P&gt;ActiveDocument.Save&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 03:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143503#M22731</guid>
      <dc:creator />
      <dc:date>2009-05-07T03:30:21Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143504#M22732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that it is because you're trying to use "Save" after reducing the data. It probably will work if you use "SaveAs" in the second part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 03:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143504#M22732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-07T03:40:31Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143505#M22733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once again thank you for your reply.&lt;/P&gt;&lt;P&gt;I had saveas in place of .save, i changed it to save to go as under&lt;/P&gt;&lt;P&gt;1. After reload of main document save that document with new name with save as .&lt;/P&gt;&lt;P&gt;2. reduce the data in the new document&lt;/P&gt;&lt;P&gt;3. save the new document&lt;/P&gt;&lt;P&gt;When i do save as it is also saving main document. Please correct me if i am wrong,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 03:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143505#M22733</guid>
      <dc:creator />
      <dc:date>2009-05-07T03:50:54Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143506#M22734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, it makes sense. It all depends of what you really need. Maybe think of this:&lt;/P&gt;&lt;P&gt;1. Reload main document using /l switch instead of /r (reload without saving)&lt;BR /&gt;On postreload macro&lt;BR /&gt;2. Reduce&lt;BR /&gt;3. SaveAs.&lt;/P&gt;&lt;P&gt;The major difference is that the main document is always the same, maybe keep it empty.&lt;BR /&gt;Was the uinwanted "Save As" fixed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 05:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143506#M22734</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-07T05:42:32Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143507#M22735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a few minutes to try... See attached (I know it's simplified, just testing the approach)&lt;/P&gt;&lt;P&gt;(Sure you'll have to edit the qv.exe and file location in the batch.bat)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 19:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143507#M22735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-07T19:40:48Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143508#M22736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Michael, It worked well the only issye it after reducing data and save as at the end it ask for the cofirmation. it pop up with small window and it is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8206.qlickview.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/8206.qlickview.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It does not exit(quit) application untill i hit ok. So any set up i need to do.&lt;/P&gt;&lt;P&gt;Once again Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 20:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143508#M22736</guid>
      <dc:creator />
      <dc:date>2009-05-07T20:36:23Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143509#M22737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure you forgot to remove that msgbox() line we used for testing yesterday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 21:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143509#M22737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-07T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Batch file and Dodument reload</title>
      <link>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143510#M22738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Catch , You got me there Michael. Great, It works like charm,&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;Once agian thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 21:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Batch-file-and-Dodument-reload/m-p/143510#M22738</guid>
      <dc:creator />
      <dc:date>2009-05-07T21:31:06Z</dc:date>
    </item>
  </channel>
</rss>

