<?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: Error in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823599#M1019511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey sunny,&lt;/P&gt;&lt;P&gt;Actually i am not allowed to del the trigger so is there any other way to acheive the same??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 13:34:10 GMT</pubDate>
    <dc:creator>nikhilgarg</dc:creator>
    <dc:date>2015-03-31T13:34:10Z</dc:date>
    <item>
      <title>Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823593#M1019505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, My script is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(_CalendatType) = 0 , $(vSalesbookUsage) ,&lt;/P&gt;&lt;P&gt;if(_CalendarType = 'Fiscal' , GetFieldSelections([TradeFiscalYear]) &amp;amp; '-' &amp;amp; GetFieldSelections([TradeFiscalQuarter]) ,&lt;/P&gt;&lt;P&gt;if(vTradeCalendarType = '1D' , date(max(){1}TradeDateMaster), 'MM/DD/YYY'),&lt;/P&gt;&lt;P&gt;if(vTradeCalendarType = 'Custom' , Date($(vTradeStartDate) , 'MM/DD/YYYY') &amp;amp; '-' &amp;amp; Date(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;$(vTradeEndDate) , 'MM/DD/YYYY'&lt;/SPAN&gt;)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vSalesbookUsage = SalesBookUsage.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But issue is whenever i clear everything sometimes SalesbookUsage in straight table caption is not shown. Last Selected Date is shown. ALso when i reopen the file, last selected date is shown while it should show SalesBookUsage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What to do??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 07:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823593#M1019505</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823594#M1019506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is the script copy-paste from your application?&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In the first line you have _Calenda&lt;/SPAN&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt; text-decoration: underline;"&gt;t&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Type &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&amp;nbsp; ...with a t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Fjalar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823594#M1019506</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823595#M1019507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;It is a typing mistake(Typo). Can you please tell what to do because whenever i reopen the document it shows last time selected date while i want if no date is selected or if we reopen document then SalesbookUsage should be written at caption of straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823595#M1019507</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T12:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823596#M1019508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set a on open trigger within the document properties which essentially clears your selection for your date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82491_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/82492_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823596#M1019508</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-31T12:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823597#M1019509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny,&lt;/P&gt;&lt;P&gt;it helped &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823597#M1019509</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T13:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823598#M1019510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, I am glad it was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823598#M1019510</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-31T13:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823599#M1019511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey sunny,&lt;/P&gt;&lt;P&gt;Actually i am not allowed to del the trigger so is there any other way to acheive the same??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823599#M1019511</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823600#M1019512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you are trying to clear a field without using a trigger? Is that what your requirement is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823600#M1019512</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-31T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823601#M1019513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, actually i want when i open the doc in straight table's caption , Salesbook usage should be visible when no date is selected. But due to trigger by default calendar is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823601#M1019513</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823602#M1019514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey btw let say i have 2 tables with 2 common columns. I load one table&lt;/P&gt;&lt;P&gt;then voncatenate with other same columns table. Now i want to remove&lt;/P&gt;&lt;P&gt;duplicate columns also. What can we do for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 17:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823602#M1019514</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T17:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823603#M1019515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use where exist condition while concatenating to make sure you only load column entries which are not already present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And answer to your first question: How to do it without trigger: I don't know any way (right now). I am going to do some research at my end to see if I can find a way to do it without using triggers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 17:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823603#M1019515</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-31T17:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823604#M1019516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx sunny. But shouldn't we use where not exist like;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: load salespersonname from table1;&lt;/P&gt;&lt;P&gt;     Concatenate&lt;/P&gt;&lt;P&gt;   Load salespersonname from table2 where not exist salespersonname ;&lt;/P&gt;&lt;P&gt;     Concatenate&lt;/P&gt;&lt;P&gt;  Load salespersonname from table3 where not exist salespersonname ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2:  after loading above tables i want to use  applymap() to get the&lt;/P&gt;&lt;P&gt;salesregion for all available salesperson. But i am in a fix how to get&lt;/P&gt;&lt;P&gt;that. Can you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 17:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823604#M1019516</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T17:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823605#M1019517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nikhil you are right. We will be using where not exist. I was just hinting towards the use of where exist condition, but the actual coding in your case would require you to use where not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need help with the syntax for ApplyMap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 17:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823605#M1019517</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-31T17:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823606#M1019518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i need to know how exactly i can apply the applymap() with above&lt;/P&gt;&lt;P&gt;code. I know the syntax although. I want to have salesregion for every&lt;/P&gt;&lt;P&gt;salesperson. Applymap() is used to get salesregion. Do i need to use&lt;/P&gt;&lt;P&gt;applymap() with evry load statement ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 18:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823606#M1019518</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-03-31T18:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error in script</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823607#M1019519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey sunny,&lt;/P&gt;&lt;P&gt;I am using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load SalespersonName,&lt;/P&gt;&lt;P&gt;applymap('Table2' , Desk , 'Unknown') as Desk,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;applymap('Table3' , Region , 'Unknown') as Region&lt;/SPAN&gt; ;&lt;/P&gt;&lt;P&gt;select salespersonname from table abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load SalespersonName ,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;applymap('Table2' , Desk , 'Unknown') as Desk,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;applymap('Table3' , Region , 'Unknown') as Region&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;where not exists(salespersonName);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;select salespersonname from table def;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 07:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-script/m-p/823607#M1019519</guid>
      <dc:creator>nikhilgarg</dc:creator>
      <dc:date>2015-04-01T07:48:07Z</dc:date>
    </item>
  </channel>
</rss>

