<?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: Reset input box using macro on Clear All button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441000#M164404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with this macro&lt;/P&gt;&lt;P&gt;sub clear&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;prop = v.GetProperties&lt;/P&gt;&lt;P&gt;dim list&lt;/P&gt;&lt;P&gt;list=Array("abc","45","xyz","")&lt;/P&gt;&lt;P&gt;prop.PreDefinedList = list&lt;/P&gt;&lt;P&gt;v.SetProperties prop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set ClearAllib = ActiveDocument.GetSheetObject("IB10")&lt;/P&gt;&lt;P&gt;ClearAllib.SetVariableContent 0,"",true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erase list&lt;/P&gt;&lt;P&gt;list=Array("abc","45","xyz")&lt;/P&gt;&lt;P&gt;prop.PreDefinedList = list&lt;/P&gt;&lt;P&gt;v.SetProperties prop&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 20:49:48 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-10-22T20:49:48Z</dc:date>
    <item>
      <title>Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440994#M164398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I'm trying out a macro I found on this discussion board, but it's not working for me. I have an Input Box with 5 predefined values. I need the input box to reset or clear (show no values) when the user clicks the Clear All button.&amp;nbsp; I've added the following macro as an Action on the Clear All button. It does clear the value in the Input Box, but the Edit Module box keeps opening everytime it runs. I'm not sure what is wrong with the macro. Any suggestions will be appreciated! Thanks--Cat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub IBclear&lt;/P&gt;&lt;P&gt;'Clear All input boxes&lt;/P&gt;&lt;P&gt;&amp;nbsp; set ClearAllib = ActiveDocument.GetSheetObject("IB10")&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClearAllib.SetVariableContent 0,"",true&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClearAllib.SetVariableContent 1,"",true&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClearAllib.SetVariableContent 2,"",true&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClearAllib.SetVariableContent 3,"",true&lt;/P&gt;&lt;P&gt;&amp;nbsp; ClearAllib.SetVariableContent 4,"",true&lt;/P&gt;&lt;P&gt;'&amp;nbsp; ActiveDocument.ClearAll false&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 19:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440994#M164398</guid>
      <dc:creator />
      <dc:date>2012-10-22T19:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440995#M164399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To set an empty value for the input box with option predefined values only. you have to include emtpy value in the predefined values. simply semicolon without any chars&lt;/P&gt;&lt;P&gt;Example: &lt;STRONG&gt;;&lt;/STRONG&gt;1;2;3;4;5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 19:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440995#M164399</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-22T19:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440996#M164400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. That is my workaround, however it puts a blank line in my dropdown. I'd like to use a macro to avoid having this extra blank line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 19:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440996#M164400</guid>
      <dc:creator />
      <dc:date>2012-10-22T19:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440997#M164401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can go with other option as set any one as default value from the predefined values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440997#M164401</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-22T20:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440998#M164402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there is no default value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440998#M164402</guid>
      <dc:creator />
      <dc:date>2012-10-22T20:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440999#M164403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you want something like attached file..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/440999#M164403</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-22T20:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441000#M164404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with this macro&lt;/P&gt;&lt;P&gt;sub clear&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;prop = v.GetProperties&lt;/P&gt;&lt;P&gt;dim list&lt;/P&gt;&lt;P&gt;list=Array("abc","45","xyz","")&lt;/P&gt;&lt;P&gt;prop.PreDefinedList = list&lt;/P&gt;&lt;P&gt;v.SetProperties prop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set ClearAllib = ActiveDocument.GetSheetObject("IB10")&lt;/P&gt;&lt;P&gt;ClearAllib.SetVariableContent 0,"",true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erase list&lt;/P&gt;&lt;P&gt;list=Array("abc","45","xyz")&lt;/P&gt;&lt;P&gt;prop.PreDefinedList = list&lt;/P&gt;&lt;P&gt;v.SetProperties prop&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 20:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441000#M164404</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-10-22T20:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441001#M164405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! This works perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 14:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441001#M164405</guid>
      <dc:creator />
      <dc:date>2012-10-23T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reset input box using macro on Clear All button</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441002#M164406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick question, how would I modify this macro to work with input boxes that don't have predefined variables?&amp;nbsp; Just to wipe whatever they happen to have in them.&amp;nbsp; (Sorry I can't chip you points from this string, but level 10 says you're okay unless you're trying to dethrone Gysbert. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 20:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-input-box-using-macro-on-Clear-All-button/m-p/441002#M164406</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2014-10-23T20:32:53Z</dc:date>
    </item>
  </channel>
</rss>

