<?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 OnClose in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnClose/m-p/693736#M473983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of questions re a couple of variables I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 calendar objects, called start date and end date. These objects are linked to variables which I use in expressions to bring up data within 2 time ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I:&lt;/P&gt;&lt;P&gt;1) On open or close of the app clear the selections made, so that when the app is opened, it has no selections&lt;/P&gt;&lt;P&gt;2) Is there an error trapping function in QlikView to say if this expression produces an error value, display this text. I have one particular text box where if I haven't made date selections it says error in expressions, I would like it to say "No Dates Selected" instead. (Current formula is&lt;/P&gt;&lt;P&gt;='Dates Selected: &lt;/P&gt;&lt;P&gt;From '&amp;amp; Date($(vFromDate),'DD.MMM.YYYY')&amp;amp;'&lt;/P&gt;&lt;P&gt;To '&amp;amp;&lt;/P&gt;&lt;P&gt;Date($(vToDate),'DD.MMM.YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;3) How do I use "Char" in a text box to manage which text goes on which line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 15:06:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-09T15:06:13Z</dc:date>
    <item>
      <title>OnClose</title>
      <link>https://community.qlik.com/t5/QlikView/OnClose/m-p/693736#M473983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of questions re a couple of variables I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 calendar objects, called start date and end date. These objects are linked to variables which I use in expressions to bring up data within 2 time ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I:&lt;/P&gt;&lt;P&gt;1) On open or close of the app clear the selections made, so that when the app is opened, it has no selections&lt;/P&gt;&lt;P&gt;2) Is there an error trapping function in QlikView to say if this expression produces an error value, display this text. I have one particular text box where if I haven't made date selections it says error in expressions, I would like it to say "No Dates Selected" instead. (Current formula is&lt;/P&gt;&lt;P&gt;='Dates Selected: &lt;/P&gt;&lt;P&gt;From '&amp;amp; Date($(vFromDate),'DD.MMM.YYYY')&amp;amp;'&lt;/P&gt;&lt;P&gt;To '&amp;amp;&lt;/P&gt;&lt;P&gt;Date($(vToDate),'DD.MMM.YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;3) How do I use "Char" in a text box to manage which text goes on which line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 15:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnClose/m-p/693736#M473983</guid>
      <dc:creator />
      <dc:date>2014-10-09T15:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: OnClose</title>
      <link>https://community.qlik.com/t5/QlikView/OnClose/m-p/693737#M473984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. There is a "Action" called "Set Variable" which could be used to clear variables e.g. OnActivateSheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works generally fine on variables, but if you use the Calendar-object it does seem like that overrides this action and you cannot change a selected date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One possibility would be to run this in steps so e.g. vToDate is set to vCalToDate (connected with the Calendar object) and then you clean out vToDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the Charts &amp;gt; General Tab you have the standard "Error Messages", where you can switch to a custom message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. You can work with regular lines breaks within quotes. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Here is my first line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here comes my third line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'&amp;amp;vToDate&amp;amp;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and some more...'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 15:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnClose/m-p/693737#M473984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-09T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: OnClose</title>
      <link>https://community.qlik.com/t5/QlikView/OnClose/m-p/693738#M473985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3. Or with CHR(10)... ='Here is some text '&amp;amp;CHR(10)&amp;amp;' and another line.'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 15:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnClose/m-p/693738#M473985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-09T15:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: OnClose</title>
      <link>https://community.qlik.com/t5/QlikView/OnClose/m-p/693739#M473986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Herbert,&lt;/P&gt;&lt;P&gt;you can try set your variable as Date in&lt;/P&gt;&lt;P&gt;Document Property -&amp;gt; Number -&amp;gt; Variables.&lt;/P&gt;&lt;P&gt;So I resolved.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 15:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnClose/m-p/693739#M473986</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2014-10-09T15:47:02Z</dc:date>
    </item>
  </channel>
</rss>

