<?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 Set ListBox properties in macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233459#M84996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is for the field. The code below will give you an idea. Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub a&lt;BR /&gt; set fld=ActiveDocument.GetField("Product")&lt;BR /&gt; if fld.GetValueCount(1) &amp;lt;&amp;gt; 1 then&lt;BR /&gt; msgbox "Please select one value first"&lt;BR /&gt; exit sub&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; set fprop = fld.GetProperties&lt;BR /&gt; fprop.ShowAlternatives = false&lt;BR /&gt; fprop.OneAndOnlyOne = true&lt;BR /&gt; fld.SetProperties fprop&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2010 16:15:35 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2010-02-08T16:15:35Z</dc:date>
    <item>
      <title>Set ListBox properties in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233458#M84995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, fellows,&lt;/P&gt;&lt;P&gt;could anyone write, how to set AlwaysOneSelectedValue property for the ListBox in macros. Or maybe the Field itself has this option?&lt;/P&gt;&lt;P&gt;Thank's for the help,&lt;/P&gt;&lt;P&gt;Justinas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 15:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233458#M84995</guid>
      <dc:creator>justinasp</dc:creator>
      <dc:date>2010-02-08T15:29:51Z</dc:date>
    </item>
    <item>
      <title>Set ListBox properties in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233459#M84996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is for the field. The code below will give you an idea. Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;sub a&lt;BR /&gt; set fld=ActiveDocument.GetField("Product")&lt;BR /&gt; if fld.GetValueCount(1) &amp;lt;&amp;gt; 1 then&lt;BR /&gt; msgbox "Please select one value first"&lt;BR /&gt; exit sub&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; set fprop = fld.GetProperties&lt;BR /&gt; fprop.ShowAlternatives = false&lt;BR /&gt; fprop.OneAndOnlyOne = true&lt;BR /&gt; fld.SetProperties fprop&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 16:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233459#M84996</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2010-02-08T16:15:35Z</dc:date>
    </item>
    <item>
      <title>Set ListBox properties in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233460#M84997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consulta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Como se aplica este script?&lt;/P&gt;&lt;P&gt;Desde donde se ejecuta el llamado?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gracias .-D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 18:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233460#M84997</guid>
      <dc:creator />
      <dc:date>2010-03-12T18:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set ListBox properties in macros</title>
      <link>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233461#M84998</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;If your requirement is to select one value always, this will help you.&lt;/P&gt;&lt;P&gt;1. Select any value in the listbox&lt;/P&gt;&lt;P&gt;2. Go to the properties of that listbox&lt;/P&gt;&lt;P&gt;3. On the General Tab, find the option "Always One Selected Value"&lt;/P&gt;&lt;P&gt;4. Mark it as enable.&lt;/P&gt;&lt;P&gt;5. Click on "Apply" and "Ok"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process will enable you to select one value always from that listbox, untill you mark it as disable.&lt;/P&gt;&lt;P&gt;No changes will take place even you click on "Clear" button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 07:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-ListBox-properties-in-macros/m-p/233461#M84998</guid>
      <dc:creator />
      <dc:date>2013-07-29T07:28:42Z</dc:date>
    </item>
  </channel>
</rss>

