<?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: Conditionally set field in clear action in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040397#M350214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay.&amp;nbsp; I will try to get something together tomorrow.&amp;nbsp; Thanks again for the assistance.&amp;nbsp; This one really has me stumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 20:39:42 GMT</pubDate>
    <dc:creator>wnorwood</dc:creator>
    <dc:date>2016-01-20T20:39:42Z</dc:date>
    <item>
      <title>Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040390#M350207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text box with two conditional actions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first action (Select in Field) selects a value in the [My Tickets] field if there is currently no selection which works great. The search string is: &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[My Tickets]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0,&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vUserID&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second action (Clear Field) is supposed to clear the [My Tickets] field if there is a selection. This is NOT working.&amp;nbsp; It clears ALL selections, not just the My Tickets one. The field in the action is set to:&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[My Tickets]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=1,'[My Tickets]') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the selection is either none or one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to get the "field" to recognize the one field conditionally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 16:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040390#M350207</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2016-01-20T16:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040391#M350208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version on QV you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QV 11.2 versions, you have new action &lt;STRONG&gt;Clear Field&lt;/STRONG&gt; and use this action to clear one field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actions --&amp;gt; Selection --&amp;gt; Clear Field&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 17:08:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040391#M350208</guid>
      <dc:creator />
      <dc:date>2016-01-20T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040392#M350209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are on an earlier version 11 something.&amp;nbsp; But, I do have the Clear Field action.&amp;nbsp; I need to know how to conditionally set the field that I want to be cleared. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 17:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040392#M350209</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2016-01-20T17:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040393#M350210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write expression to get the correct field name. Can you please share in detail requirement and share sample qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with getcurrentselections() function to extract the selected Fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 18:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040393#M350210</guid>
      <dc:creator />
      <dc:date>2016-01-20T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040394#M350211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only use the first action, won't this also clear the field if you have actually a selection on that field (ELSE branch executing, empty field value trying to get selected)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this, I can't reproduce your issue, could you post a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 19:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040394#M350211</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-20T19:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040395#M350212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I think I am not being clear in what I am attempting to do. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a toggle button using a text box object.&amp;nbsp; Clicking the button will set the field value to their userid - click it again and it clears the field - click it again and it sets the field value back to the userid - and so forth.&amp;nbsp;&amp;nbsp; It is the toggle action that is causing my issues.&amp;nbsp; I need it to do one action if there are selections already made and a different one if there are no selections already made (see my expressions in the original post).&amp;nbsp; I will try to put together a small sample app, but that will take some time to put together.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The setting the value to userid is working.&amp;nbsp; It is the clearing one that is not working.&amp;nbsp; I think because it doesn't recognize it as the field name, but I could be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 19:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040395#M350212</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2016-01-20T19:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040396#M350213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But on my system, it works with the first action only, I think you don't need the second action.&lt;/P&gt;&lt;P&gt;But even if I add the second action, I can't reproduce your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please post a sample QVW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 19:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040396#M350213</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-20T19:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040397#M350214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay.&amp;nbsp; I will try to get something together tomorrow.&amp;nbsp; Thanks again for the assistance.&amp;nbsp; This one really has me stumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 20:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040397#M350214</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2016-01-20T20:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040398#M350215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not been able to get a sample application together, yet.&amp;nbsp; But, I did notice one thing this morning.&amp;nbsp; I actually have two toggle buttons.&amp;nbsp; One for "My Tickets" and one for "My Organization".&amp;nbsp; The My Organization one has the same code as My Tickets - just replaces [My Tickets] with [My Organization]. Sorry that I didn't mention that before, but I didn't realize it was important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just click one or the other OFF and ON, then it works perfectly and clears only the one field.&amp;nbsp; However, if I click on "My Tickets" (turn it on) and click on "My Organization" (turn it on), then click on either one to turn it off... THEN it clears all fields.&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 15:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040398#M350215</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2016-01-21T15:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040399#M350216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I still can't reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached a small sample QVW, trying to do the same as you described in the OP, now for two fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 18:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040399#M350216</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-21T18:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conditionally set field in clear action</title>
      <link>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040400#M350217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for attaching your application.&amp;nbsp; At least I can see that it should work.&amp;nbsp; I even copied your text boxes into my app in case I was doing something strange.&amp;nbsp; But, I still have the same issue.&amp;nbsp; It must have something to do with the model design which is quite involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 20:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditionally-set-field-in-clear-action/m-p/1040400#M350217</guid>
      <dc:creator>wnorwood</dc:creator>
      <dc:date>2016-01-21T20:37:20Z</dc:date>
    </item>
  </channel>
</rss>

