<?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: Change properties of ListBox for multiple objects in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974607#M959773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up using a macro (vbscript) to solve this issue.&amp;nbsp; I found it at the following post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/32778"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;https://community.qlik.com/thread/32778&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;The API guide was also helpful to figure out exactly which property syntax I needed to change:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; font-size: 12pt; mso-ansi-language: EN-US; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2245"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;https://community.qlik.com/docs/DOC-2245&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Here is the code (again, found at the first link above, and I used API guide to figure out how to set the Multicolumn property).&amp;nbsp; I then attached this to a button as action.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ListBoxProperties()&amp;nbsp; &lt;BR /&gt; for j= 0 to ActiveDocument.NoOfSheets - 1&amp;nbsp; &lt;BR /&gt; set s=ActiveDocument.Sheets(j)&amp;nbsp; &lt;BR /&gt; lboxes=s.GetListBoxes&amp;nbsp; &lt;BR /&gt; for i=lbound(lboxes) to ubound(lboxes)&amp;nbsp; &lt;BR /&gt; set box=lboxes(i).GetProperties&amp;nbsp; &lt;BR /&gt; box.Layout.ShowFrequency = true&amp;nbsp; &lt;BR /&gt; box.Layout.MultiColumn = true&lt;BR /&gt; 'box.Layout.FrequencyInPercent = true&amp;nbsp; &lt;BR /&gt; lboxes(i).SetProperties box&amp;nbsp; &lt;BR /&gt; next&amp;nbsp; &lt;BR /&gt; next&amp;nbsp; &lt;BR /&gt; end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 15:02:28 GMT</pubDate>
    <dc:creator>jzimolong</dc:creator>
    <dc:date>2015-10-28T15:02:28Z</dc:date>
    <item>
      <title>Change properties of ListBox for multiple objects</title>
      <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974603#M959765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to update the following two properties for every ListBox object in a file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Properties - General - Show Frequency (check the box)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Properties - Presentation - Single Column (uncheck the box)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 18:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974603#M959765</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-10-27T18:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change properties of ListBox for multiple objects</title>
      <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974604#M959767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joseph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only common properties we can change between multiple list boxes is like layout, caption and font. I assume the answer to your question is a no.&lt;/P&gt;&lt;P&gt;Do let us know if you find any way to change the other properties in bulk besides the common 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Brad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 18:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974604#M959767</guid>
      <dc:creator />
      <dc:date>2015-10-27T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change properties of ListBox for multiple objects</title>
      <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974605#M959769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Brad, this is exactly why I posted the question.&amp;nbsp; I have a couple dozen ListBox objects in my application and I want to make the two updates above in one step.&amp;nbsp; Instead of opening each ListBox property screen individually, I was hoping to do update them all at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was going to explore a VBScript macro and see if it is possible going down that path.&amp;nbsp; Hoping there is another creative solution out there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 20:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974605#M959769</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-10-27T20:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change properties of ListBox for multiple objects</title>
      <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974606#M959771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Joseph. you are right I faced similar problem.. Had many text boxes. And I could not change its color at once.. If you found any solution using Macro post it.. Also see this thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/862111"&gt;How can we change the background colour for many text boxes at a time?&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 07:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974606#M959771</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2015-10-28T07:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change properties of ListBox for multiple objects</title>
      <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974607#M959773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up using a macro (vbscript) to solve this issue.&amp;nbsp; I found it at the following post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/32778"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;https://community.qlik.com/thread/32778&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;The API guide was also helpful to figure out exactly which property syntax I needed to change:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-bidi-language: AR-SA; mso-fareast-language: EN-US; font-size: 12pt; mso-ansi-language: EN-US; font-family: 'Calibri','sans-serif'; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2245"&gt;&lt;SPAN style="color: #0000ff; text-decoration: underline;"&gt;https://community.qlik.com/docs/DOC-2245&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Here is the code (again, found at the first link above, and I used API guide to figure out how to set the Multicolumn property).&amp;nbsp; I then attached this to a button as action.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ListBoxProperties()&amp;nbsp; &lt;BR /&gt; for j= 0 to ActiveDocument.NoOfSheets - 1&amp;nbsp; &lt;BR /&gt; set s=ActiveDocument.Sheets(j)&amp;nbsp; &lt;BR /&gt; lboxes=s.GetListBoxes&amp;nbsp; &lt;BR /&gt; for i=lbound(lboxes) to ubound(lboxes)&amp;nbsp; &lt;BR /&gt; set box=lboxes(i).GetProperties&amp;nbsp; &lt;BR /&gt; box.Layout.ShowFrequency = true&amp;nbsp; &lt;BR /&gt; box.Layout.MultiColumn = true&lt;BR /&gt; 'box.Layout.FrequencyInPercent = true&amp;nbsp; &lt;BR /&gt; lboxes(i).SetProperties box&amp;nbsp; &lt;BR /&gt; next&amp;nbsp; &lt;BR /&gt; next&amp;nbsp; &lt;BR /&gt; end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 15:02:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974607#M959773</guid>
      <dc:creator>jzimolong</dc:creator>
      <dc:date>2015-10-28T15:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change properties of ListBox for multiple objects</title>
      <link>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974608#M959774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Joe.&lt;/P&gt;&lt;P&gt;Thanks for sharing it. I also resolved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 06:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-properties-of-ListBox-for-multiple-objects/m-p/974608#M959774</guid>
      <dc:creator>raajaswin</dc:creator>
      <dc:date>2015-10-29T06:44:11Z</dc:date>
    </item>
  </channel>
</rss>

