<?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 List Box - Set to &amp;quot;Always One Selected&amp;quot; via code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233517#M85054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrea this has done the trick for me....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 14:57:18 GMT</pubDate>
    <dc:creator>pkelly</dc:creator>
    <dc:date>2011-04-28T14:57:18Z</dc:date>
    <item>
      <title>List Box - Set to "Always One Selected" via code</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233514#M85051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issues...&lt;/P&gt;&lt;P&gt;I have a report which shows QlikView Report Usage.&lt;/P&gt;&lt;P&gt;On tab 1, I want to show a chart showing the number of reports opened by users by day.&lt;/P&gt;&lt;P&gt;On tab 2, I want to show specific detail about a filtered report, update schedule etc...&lt;/P&gt;&lt;P&gt;I have all of this in place...&lt;/P&gt;&lt;P&gt;The issue that I have is that on tab 2, my filter needs to be set to "Always show one value" but having this disrupts tab 1 because this then only shows data for the filtered report when I need it to show for all...&lt;/P&gt;&lt;P&gt;What I would like to to is programatically play with the filter on tab 2...&lt;/P&gt;&lt;P&gt;When the sheet is activated, set the filter field value (qvw_Code) to "02A" then turn set the list box value to "Always One Selected Value" = true.&lt;/P&gt;&lt;P&gt;When the sheet is deactivated, set the list box value "Always One Selected Value" = false then clear the filters.&lt;/P&gt;&lt;P&gt;Can someone please give some guidance on the macro I need for setting the list box "Always One Selected Value"?&lt;/P&gt;&lt;P&gt;I have had a look at the APIguide with no joy....&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 13:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233514#M85051</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2011-04-28T13:50:48Z</dc:date>
    </item>
    <item>
      <title>List Box - Set to "Always One Selected" via code</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233515#M85052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The property you are looking for is on the Field (not listbox) and is called OneAndOnlyOne.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233515#M85052</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2011-04-28T14:24:15Z</dc:date>
    </item>
    <item>
      <title>List Box - Set to "Always One Selected" via code</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233516#M85053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;here what you are looking for:&lt;/P&gt;&lt;P&gt;sub SetOneAndOnlyOne&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject("LB01")&lt;/P&gt;&lt;P&gt;set boxfield=obj.GetField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set fprop = boxfield.GetProperties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if boxfield.GetFieldFlags.OneAndOnlyOne then&lt;/P&gt;&lt;P&gt;fprop.OneAndOnlyOne = false&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;fprop.OneAndOnlyOne = true&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;boxfield.SetProperties fprop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every time you call the macro the filed wil be set or unset. Be carefull to have something that select one value before call the macro for set the OneAndonlyOne&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233516#M85053</guid>
      <dc:creator />
      <dc:date>2011-04-28T14:32:13Z</dc:date>
    </item>
    <item>
      <title>List Box - Set to "Always One Selected" via code</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233517#M85054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Andrea this has done the trick for me....&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233517#M85054</guid>
      <dc:creator>pkelly</dc:creator>
      <dc:date>2011-04-28T14:57:18Z</dc:date>
    </item>
    <item>
      <title>List Box - Set to "Always One Selected" via code</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233518#M85055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just needed the same solution. Thanks to both for asking &amp;amp; answering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers - DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 15:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233518#M85055</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-06-08T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: List Box - Set to "Always One Selected" via code</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233519#M85056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the code snippet. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;I removed the If condition and I am using it with the OnOpen Trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 09:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-Set-to-quot-Always-One-Selected-quot-via-code/m-p/233519#M85056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-19T09:19:13Z</dc:date>
    </item>
  </channel>
</rss>

