<?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: Clear specific field with javascript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935986#M1233328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved this by having a "on update" variable trigger that clears the field if the variable is updated. I update the variable in my javascript by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var doc = Qv.GetCurrentDocument();&lt;/P&gt;&lt;P&gt;doc.SetVariable("checkRRG", 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the best way but it works for now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2015 12:28:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-17T12:28:24Z</dc:date>
    <item>
      <title>Clear specific field with javascript</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935983#M1233322</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;I want to clear a specific field when a button is clicked in my extension. The button is a simple input type = button with an id = 'canceldata' where I can catch actions by using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$("#canceldata").click(function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var doc = Qv.Document;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(doc);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but I want a function that takes a field name (For example clearField("Year")) as parameter and clears that field of any values selected. Is there such a function? I have scouted the JS API but with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://qlikcommunity.s3.amazonaws.com/misc/symbols/Qv.Document.html" title="https://qlikcommunity.s3.amazonaws.com/misc/symbols/Qv.Document.html" target="_blank"&gt;JsDoc Reference - Qv.Document&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935983#M1233322</guid>
      <dc:creator />
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clear specific field with javascript</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935984#M1233324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried to use the inbuilt action-functionalities of clearing a field? Further if you be able to select any values you could clear the field with the search-string = null().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 11:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935984#M1233324</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-17T11:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clear specific field with javascript</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935985#M1233326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is what I am after, a way of calling for example the QV actions of for example a button from javascript. I have an extension object that is shown with hide/show condition when the user selects a value from the field "ReportRowGroup". When the user clicks on the input button within my extension object I want to call the clear function for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to call functions like Qv.Document.Object.Data.ClearAllButThis()&amp;nbsp; the console says that it's not a function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can always solve the problem by adding a QV object with an action that clears the selection but its not as good looking as I want &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935985#M1233326</guid>
      <dc:creator />
      <dc:date>2015-08-17T12:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Clear specific field with javascript</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935986#M1233328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved this by having a "on update" variable trigger that clears the field if the variable is updated. I update the variable in my javascript by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var doc = Qv.GetCurrentDocument();&lt;/P&gt;&lt;P&gt;doc.SetVariable("checkRRG", 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the best way but it works for now. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935986#M1233328</guid>
      <dc:creator />
      <dc:date>2015-08-17T12:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Clear specific field with javascript</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935987#M1233329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't enough experience with this to help you further. Maybe you could look for another extensions which are using similar stuff to adapt it to your solution. Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 12:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-specific-field-with-javascript/m-p/935987#M1233329</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-17T12:30:37Z</dc:date>
    </item>
  </channel>
</rss>

