<?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: Mastercalendar not working anymore in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743948#M57037</link>
    <description>&lt;P&gt;Here in:&amp;nbsp;&lt;EM&gt;let vMinDate = Num('01.01.2000');&lt;/EM&gt; you apply a string to the num-function which couldn't work even if this string has the standard date-format because this kind of data interpretation is only performed during the load.&lt;/P&gt;&lt;P&gt;In your case you need at first to apply a convert-function like:&lt;/P&gt;&lt;P&gt;num(date#('01.01.2000', 'DD.MM.YYYY'))&lt;/P&gt;&lt;P&gt;or you may use something like this:&lt;/P&gt;&lt;P&gt;num(makedate(2000, 1, 1))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 12:25:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-09-15T12:25:45Z</dc:date>
    <item>
      <title>Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1739789#M56610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i implemented a master calendar script a while ago and wanted to use it right now. Unfortunately it doesn't work anymore. There seams to be a problem with the variable generation but i cant pinpoint and solve the problem there following my google research.&lt;/P&gt;&lt;P&gt;i use following scrip:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;MinMaxDateTable:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;min(%MasterDate) as MinDate,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; max(%MasterDate) as MaxDate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;resident ENBOProject;&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;let vMinDate = peek('MinDate',0,'MinMaxDateTable');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;let vMaxDate = peek('MaxDate',0,'MinMaxDateTable');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;let vToday = $(vMaxDate); // alternativ today()&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;drop table MinMaxDateTable;&lt;/EM&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;TempCal:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;date($(vMinDate) + RowNo()-1) as TempDate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AutoGenerate ($(vMaxDate)-$(vMinDate)+1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and get the error:&lt;/P&gt;&lt;DIV class="headline edc_error lia-indent-padding-left-30px"&gt;&lt;EM&gt;following error occurred:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="edc_error lia-indent-padding-left-30px"&gt;&lt;EM&gt;Autogenerate: generate count is negative&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="empty undefined lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="headline edc_error lia-indent-padding-left-30px"&gt;&lt;EM&gt;error occurred here:&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="edc_error lia-indent-padding-left-30px"&gt;&lt;EM&gt;TempCal: Load date( + RowNo()-1) as TempDate AutoGenerate (-+1)&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;yes the min and max date fields are filled with data&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proof.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39792i2DA782977F40A93D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Proof.PNG" alt="Proof.PNG" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;thanks&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:34:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1739789#M56610</guid>
      <dc:creator>Aloru</dc:creator>
      <dc:date>2024-11-16T01:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1739946#M56624</link>
      <description>&lt;P&gt;In that case, it might be an issue with the variables not getting created properly. Add TRACE to check there value&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let vMinDate = peek('MinDate',0,'MinMaxDateTable');
let vMaxDate = peek('MaxDate',0,'MinMaxDateTable');
let vToday = $(vMaxDate); // alternativ today()

TRADE $(vMinDate);
TRADE $(vMaxDate);&lt;/LI-CODE&gt;&lt;P&gt;May be try one of these alternatives for creating your variables&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET vMinDate = Peek('MinDate');
LET vMaxDate = Peek('MaxDate');

OR

LET vMinDate = FieldValue('MinDate', 1);
LET vMaxDate = FieldValue('MaxDate', 1);&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 31 Aug 2020 13:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1739946#M56624</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-31T13:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1742268#M56825</link>
      <description>&lt;P&gt;Thanks for the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately i didn't get it working. The trace only outputs a empty string.&lt;/P&gt;&lt;P&gt;i tried both of your alternativ methods and also directly inserting the date in the code into the variable. Still empty variable.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 07:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1742268#M56825</guid>
      <dc:creator>Aloru</dc:creator>
      <dc:date>2020-09-09T07:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1742415#M56842</link>
      <description>&lt;P&gt;It looked that you have applied some qualifying to your fieldnames - this needs to be considered if you tries to call any values from them per peek/fieldvalue. Probably better will be you disable all the qualifying and name all fields explicitly and keep the table-information only in those fields which they really add more value.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 12:57:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1742415#M56842</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-09-09T12:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743888#M57024</link>
      <description>&lt;P&gt;Thanks unqualifying helped with the input from the fields.&lt;/P&gt;&lt;P&gt;I still got problems when i input a date via script directly like:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;let vMinDate = Num('01.01.2000');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Variables are empty and the script crashes.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 09:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743888#M57024</guid>
      <dc:creator>Aloru</dc:creator>
      <dc:date>2020-09-15T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743903#M57028</link>
      <description>&lt;P&gt;The fields may have values, but the variables do not. I don't see any problem with your script, but for some reason the peeks are not working.&lt;/P&gt;&lt;P&gt;Have you turned on Qualify? Your image makes it seem that the field names are prefixed by the table name.&amp;nbsp; If that is the case, use Unqualify * before the min/max load or use the full qualified names in the Peeks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 10:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743903#M57028</guid>
      <dc:creator>Jonathan_Dienst</dc:creator>
      <dc:date>2020-09-15T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743904#M57029</link>
      <description>&lt;P&gt;Yes i tried unqualify and it helped. The input from data base fields is now working thanks.&lt;/P&gt;&lt;P&gt;But i didn't get the direct date input via script like written above working. With that method the variables stay empty.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 10:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743904#M57029</guid>
      <dc:creator>Aloru</dc:creator>
      <dc:date>2020-09-15T10:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mastercalendar not working anymore</title>
      <link>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743948#M57037</link>
      <description>&lt;P&gt;Here in:&amp;nbsp;&lt;EM&gt;let vMinDate = Num('01.01.2000');&lt;/EM&gt; you apply a string to the num-function which couldn't work even if this string has the standard date-format because this kind of data interpretation is only performed during the load.&lt;/P&gt;&lt;P&gt;In your case you need at first to apply a convert-function like:&lt;/P&gt;&lt;P&gt;num(date#('01.01.2000', 'DD.MM.YYYY'))&lt;/P&gt;&lt;P&gt;or you may use something like this:&lt;/P&gt;&lt;P&gt;num(makedate(2000, 1, 1))&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Mastercalendar-not-working-anymore/m-p/1743948#M57037</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-09-15T12:25:45Z</dc:date>
    </item>
  </channel>
</rss>

