<?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 ReduceData by OCX in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142623#M22035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I reduce data by QlikView OCX every day for different customers on server.Sometime it works good.But sometime It does its job unsuccessfully.Usually it will be no-response for long time,but not give me some error message.&lt;/P&gt;&lt;P&gt;Who can give me some advice ,thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 15:58:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-04-28T15:58:34Z</dc:date>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142623#M22035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I reduce data by QlikView OCX every day for different customers on server.Sometime it works good.But sometime It does its job unsuccessfully.Usually it will be no-response for long time,but not give me some error message.&lt;/P&gt;&lt;P&gt;Who can give me some advice ,thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 15:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142623#M22035</guid>
      <dc:creator />
      <dc:date>2009-04-28T15:58:34Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142624#M22036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;if you reduce data within loops, I recommend adding this before each reduction :&lt;/P&gt;&lt;P&gt;status=Document.GetApplication.WaitForIdle&lt;BR /&gt;Document.GetApplication.Refresh&lt;/P&gt;&lt;P&gt;the waitforidle allows an optional timeout, if timeout is reached status will return false (means that QV is anormaly busy)&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 16:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142624#M22036</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-04-28T16:43:05Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142625#M22037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that you maybe should check the max number of QlikView engines running. This could possibly have an effekt. I'm doing the same thing but currently I'm running the OCX jobs on a seperate server.&lt;/P&gt;&lt;P&gt;This was however mostly because of the frequent reloads of the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 19:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142625#M22037</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2009-04-28T19:26:15Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142626#M22038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks yves . I will try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 08:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142626#M22038</guid>
      <dc:creator />
      <dc:date>2009-04-29T08:48:47Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142627#M22039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To yvey,&lt;/P&gt;&lt;P&gt;I search the WaitForIdle in API guide. I think that it is for macro execution , not for OCX.&lt;/P&gt;&lt;P&gt;To Torben Seebach,&lt;/P&gt;&lt;P&gt;I think that the max number of QlikView engines running is based on system resource.If the CPU and RAM of your machine is big enough, I think it will work good.&lt;/P&gt;&lt;P&gt;I found that when another 'fat' application start ,my reducing data OCX application maybe have trouble.Need I update my machine hardware?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 09:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142627#M22039</guid>
      <dc:creator />
      <dc:date>2009-04-29T09:43:35Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142628#M22040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For me, OCX data reduction is a little bit far now (some work done 5 years ago...).&lt;/P&gt;&lt;P&gt;In API Guide, OCX section describe OCX specific instruction, but all other automation members are also valid for OCX (as written in red bold on top of sheet), like the Document.ReduceData that you certainly use. I think you can access QV application object thru :&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Set QVapp = QlikOcx1.ActiveDocument.GetApplication()&lt;/P&gt;&lt;P&gt;you can try i.e. : &lt;B&gt;QlikOcx1.ActiveDocument.GetApplication.MsgBox("Hello world")&lt;/B&gt;&lt;/P&gt;&lt;P&gt;The QV application object can help you debug as it provides methods to get Memory information, CPU usage, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 14:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142628#M22040</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-04-29T14:37:30Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142629#M22041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A while back I was programming Linux server caching, I used to set a lockfile to keep track of the number of running instances. I used "touch" to create the lockfile in /tmp and then remove the read lock when I was done. To se if the file was in use I used Flock() and then made the next instance sleep until the lock was released.&lt;/P&gt;&lt;P&gt;I know that vb.net supports similar functions, although I have not yet added this feature to my reduce scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 15:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142629#M22041</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2009-04-29T15:25:27Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142630#M22042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you identify which part of the process that fails? If its a file lock issue, then you properly just could make a copy of the qvw, and then reduce the copy instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 15:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142630#M22042</guid>
      <dc:creator>tseebach</dc:creator>
      <dc:date>2009-04-29T15:28:19Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142631#M22043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, for all of you,&lt;/P&gt;&lt;P&gt;First thanks for your patient help,&lt;/P&gt;&lt;P&gt;Then list my solution and part of code source, may you give me some advice?&lt;/P&gt;&lt;P&gt;I develop app by using Qlikview 8.0 activeX control in VS2005 ,and release on window sever 2003.&lt;/P&gt;&lt;P&gt;part of c# code source ,&lt;/P&gt;&lt;P&gt;Doc qvDoc = axQlikOCX.OpenDocument(qvwFileName);&lt;BR /&gt; &lt;STRONG&gt;qvDoc.Reload(0);&lt;BR /&gt;&lt;/STRONG&gt; qvDoc.SaveAs(qvwFileName, 8);&lt;/P&gt;&lt;P&gt;//***********loop for different user****start*************&lt;/P&gt;&lt;P&gt;qvDoc = this.axQlikOCX.OpenDocument(qvwFileName);&lt;/P&gt;&lt;P&gt;Field qvField = qvDoc.Fields(fieldName);&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;qvField.SelectValues(arrValues, false, false);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;qvDoc.ReduceData(false, null);&lt;BR /&gt;&lt;/STRONG&gt; qvDoc.SaveAs(qvwFileName, 8);&lt;/P&gt;&lt;P&gt;//****************************************end***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some time the 'Bold font' parts maybe no-response .Normally one action will finish in 10-20minutes.I have 6 qvw files to reduce.Sometime it run several hours...&lt;/P&gt;&lt;P&gt;I try 'WaitforIdle' method, but the result is not expected.&lt;/P&gt;&lt;P&gt;Something wrong with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142631#M22043</guid>
      <dc:creator />
      <dc:date>2009-04-29T17:14:07Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142632#M22044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would replace &lt;B&gt;Reload&lt;/B&gt; by a &lt;B&gt;ReloadEx&lt;/B&gt; to suppress progress dialog and check error count returned, this is how Ocx is (or was) used by Publisher to reload documents.&lt;/P&gt;&lt;P&gt;Last, as Ocx is a displayed control, it would be safer to insert statement for windows events (I think it is System.Windows.Forms.Application.DoEvents).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 17:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142632#M22044</guid>
      <dc:creator>yblake</dc:creator>
      <dc:date>2009-04-29T17:37:15Z</dc:date>
    </item>
    <item>
      <title>ReduceData by OCX</title>
      <link>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142633#M22045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok,I will try '&lt;STRONG&gt;ReloadEx&lt;/STRONG&gt;'.thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReduceData-by-OCX/m-p/142633#M22045</guid>
      <dc:creator />
      <dc:date>2009-04-29T19:55:09Z</dc:date>
    </item>
  </channel>
</rss>

