<?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 Input Field Reset Macro Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Input-Field-Reset-Macro-Question/m-p/1217966#M389792</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 have a table box with an input field column that is inserted into a database via VB.&amp;nbsp; When I refresh the file I run a ResetInputFieldValues macro as seen below to clear the values stored in the file and capture the data stored in the database.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub resetinput&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fld = ActiveDocument.Fields("NoteA")&lt;/P&gt;&lt;P&gt;&amp;nbsp; fld.ResetInputFieldValues 0' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set a button to execute the reload then the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is this will randomly cause an error reloading the script and exit out of the document forcing me to reload the file after a few reloads.&amp;nbsp; Why would the macro above cause an error at times and not all the time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2017 16:38:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-09T16:38:44Z</dc:date>
    <item>
      <title>Input Field Reset Macro Question</title>
      <link>https://community.qlik.com/t5/QlikView/Input-Field-Reset-Macro-Question/m-p/1217966#M389792</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 have a table box with an input field column that is inserted into a database via VB.&amp;nbsp; When I refresh the file I run a ResetInputFieldValues macro as seen below to clear the values stored in the file and capture the data stored in the database.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub resetinput&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fld = ActiveDocument.Fields("NoteA")&lt;/P&gt;&lt;P&gt;&amp;nbsp; fld.ResetInputFieldValues 0' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set a button to execute the reload then the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is this will randomly cause an error reloading the script and exit out of the document forcing me to reload the file after a few reloads.&amp;nbsp; Why would the macro above cause an error at times and not all the time? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 16:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Input-Field-Reset-Macro-Question/m-p/1217966#M389792</guid>
      <dc:creator />
      <dc:date>2017-01-09T16:38:44Z</dc:date>
    </item>
  </channel>
</rss>

