<?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 Re: Script is not working properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299768#M111034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script loads fine at a first glance. Which values should be correct so we can check whether the reload is taking the correct values from the QVD file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: The part marked as "slow" is &lt;STRONG&gt;concatenating &lt;/STRONG&gt;tables, so that's unlikely you get proper values where TakeOver, MaxTakeOver and so are shared between two tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 10:42:26 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-12-16T10:42:26Z</dc:date>
    <item>
      <title>Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299766#M111032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i'm attaching&amp;nbsp; one zip file it consits of one qvw file and one qvd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok coming to my task. I developed my application with more than than 300 fields. Now for each field i want to catch min an max values and also i'm creating dummy fields for this result. After that i'm making input fields for min and max fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I developed script in two ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Quick load for min and max&lt;/P&gt;&lt;P&gt;2) Slow load for min and max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the first script i'm not able to get accurate values for min and max. In the second script i'm able to get accurate values for dummy fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me how to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information go through the enclosed qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 12:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299766#M111032</guid>
      <dc:creator />
      <dc:date>2011-12-14T12:16:32Z</dc:date>
    </item>
    <item>
      <title>Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299767#M111033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikvie guru's&amp;nbsp; please help me on this. I think what i explained in previous post is clear if not ask me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 09:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299767#M111033</guid>
      <dc:creator />
      <dc:date>2011-12-15T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299768#M111034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacq,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script loads fine at a first glance. Which values should be correct so we can check whether the reload is taking the correct values from the QVD file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: The part marked as "slow" is &lt;STRONG&gt;concatenating &lt;/STRONG&gt;tables, so that's unlikely you get proper values where TakeOver, MaxTakeOver and so are shared between two tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299768#M111034</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-12-16T10:42:26Z</dc:date>
    </item>
    <item>
      <title>Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299769#M111035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The zip file which i've given you have loaded with only 3 fields(i.e.,BCButtterflyTimeA,BCRobotTimeA,BCRobotVacA). The Min and Max values are displayed in the text box but the values are different in the generated fields i.e MinTakeOver, MaxTakeOver,MinTakeOver1, MaxTakeOver1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 14:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299769#M111035</guid>
      <dc:creator />
      <dc:date>2011-12-16T14:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299770#M111036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jacq,&lt;/P&gt;&lt;P&gt;This is my offer, pls to see image attached&lt;/P&gt;&lt;P&gt;Good luck, Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 00:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299770#M111036</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-12-19T00:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299771#M111037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacq,&lt;/P&gt;&lt;P&gt;You are trying to get the min/max values by using the load fieldvalues() technique for speed. Good idea, but there are a some problems in your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The test &lt;/P&gt;&lt;P&gt;While Len(FieldValue('BCRobotTimeA', IterNo())) &amp;gt; 0&lt;/P&gt;&lt;P&gt;won't work because you do indeed have a zero length values in your data. I think Luis already pointed this out. I think a better way to control the loop is:&lt;/P&gt;&lt;P&gt;AutoGenerate(FieldValueCount('BCRobotVacA'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When you load the fieldvalue, you name the new field same as the field you are loading. While I can't say for sure that is a problem, it seems illogical and potentially problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The INPUTFIELD statement should be specified only once in your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the script below repeated for each field. I'm using preceding load so there is no need to create and drop a temp table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Max_TakeOver:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&amp;nbsp; *, MinTakeOver as MinTakeOver1, MaxTakeOver as MaxTakeOver1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD &lt;STRONG&gt;'BCButtterflyTimeA'&lt;/STRONG&gt; as TakeOver,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;max(X) as MaxTakeOver,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;min(X) as MinTakeOver&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD FieldValue(&lt;STRONG&gt;'BCButtterflyTimeA'&lt;/STRONG&gt;, recno()) as X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;AutoGenerate(FieldValueCount(&lt;STRONG&gt;'BCButtterflyTimeA'&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 02:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299771#M111037</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-19T02:46:38Z</dc:date>
    </item>
    <item>
      <title>Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299772#M111038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx&amp;nbsp; Luis and Rob.. I'll check and get back to you once i reach my office.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 05:43:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299772#M111038</guid>
      <dc:creator />
      <dc:date>2011-12-19T05:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299773#M111039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya i'm getting accurate values..But when i use updated qvd file. The input fields are holding the previous qvd file data only. The input fields are not reset to initial value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your reference i'm attaching one zip file with two qvd files. Load the application by changing the names of qvd file in editscript and see the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 11:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299773#M111039</guid>
      <dc:creator />
      <dc:date>2011-12-19T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299774#M111040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are seeing is expected behavior. Input Field values survive reload by design. The only way I know to automatically reset them is with a macro as discussed in other threads. Perhaps someone else has an idea as to how they can be reset in script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 17:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299774#M111040</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2011-12-19T17:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299775#M111041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob Wunderlich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right.. I have gone through few threads in community. This &lt;A _jive_internal="true" href="https://community.qlik.com/message/172882#172882"&gt;thread&lt;/A&gt; has given me the details about input field functionality. But i'm not able to find the solution for my problem. If possible can you please check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 18:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299775#M111041</guid>
      <dc:creator />
      <dc:date>2011-12-19T18:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script is not working properly</title>
      <link>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299776#M111042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help from you. I want to link below tables. How it is posible? Please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//****************** Current Data **************&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD BCButtterflyTimeA, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCRobotTimeA, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BCRobotVacA,LotNo,LensKey&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;D:\LGUI\2_QvdGenerator\QVD\RTQMain.qvd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//********** TakeOver ****************************************************************************************&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUB MinMax(Str)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All_$(Str):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD FieldValue('$(Str)', IterNo()) as $(Str)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While not IsNull (FieldValue('$(Str)', IterNo()));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INPUTFIELD MinTakeOver,MaxTakeOver;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max_TakeOver:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&amp;nbsp; TakeOver,MinTakeOver, MaxTakeOver, MinTakeOver as MinTakeOver1, MaxTakeOver as MaxTakeOver1; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD '$(Str)' as TakeOver,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max($(Str)) as MaxTakeOver,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;min($(Str)) as MinTakeOver&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident All_$(Str);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table All_$(Str);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDSUB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL MinMax('BCButtterflyTimeA');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL MinMax('BCRobotTimeA');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL MinMax('BCRobotVacA');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 12:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-is-not-working-properly/m-p/299776#M111042</guid>
      <dc:creator />
      <dc:date>2012-01-30T12:20:09Z</dc:date>
    </item>
  </channel>
</rss>

