<?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 If statement to change selections between two multi select boxes. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233848#M85363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So here is the code that will work............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUB SeeValues&lt;BR /&gt; SET s = ActiveDocument.Fields("field1").GetSelectedValues&lt;BR /&gt;&lt;BR /&gt; For x = 0 to s.Count - 1&lt;BR /&gt;&lt;BR /&gt; IF s.Item(x).Text = "C" THEN ActiveDocument.Fields("field2").Select "C1"&lt;BR /&gt;&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt;END SUB&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Obviously change field1 and field2 for your names, and then change the comparison and select text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 17:20:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-06T17:20:48Z</dc:date>
    <item>
      <title>If statement to change selections between two multi select boxes.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233845#M85360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with a macro in one of my QVWs. I am receiving the following error on this IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SelectSDStore&lt;/P&gt;&lt;P&gt;if ActiveDocument.Fields("OPCO") = ("Store A") then&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Store_Info").Select "12-Store 12",1&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Object doesn't support this property or method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the value of one multi select box and if it equals that value, I want to default the selection of the store number. Is there a better route of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any information&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 17:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233845#M85360</guid>
      <dc:creator />
      <dc:date>2010-05-06T17:05:37Z</dc:date>
    </item>
    <item>
      <title>If statement to change selections between two multi select boxes.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233846#M85361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're IF statement should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;IF ActiveDocument.Fields("OPCO").GetContent.String = 'Store A' THEN ..................&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do the trick for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 17:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233846#M85361</guid>
      <dc:creator />
      <dc:date>2010-05-06T17:07:48Z</dc:date>
    </item>
    <item>
      <title>If statement to change selections between two multi select boxes.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233847#M85362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Scrub that, I'm wrong, I've just given you the code for a variable rather than a field.&lt;/P&gt;&lt;P&gt;When you say that the field is in a multi select box, does that mean that you might have multiple values selected and in this case you want to know if Store A is one of those values selected?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 17:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233847#M85362</guid>
      <dc:creator />
      <dc:date>2010-05-06T17:12:08Z</dc:date>
    </item>
    <item>
      <title>If statement to change selections between two multi select boxes.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233848#M85363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So here is the code that will work............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SUB SeeValues&lt;BR /&gt; SET s = ActiveDocument.Fields("field1").GetSelectedValues&lt;BR /&gt;&lt;BR /&gt; For x = 0 to s.Count - 1&lt;BR /&gt;&lt;BR /&gt; IF s.Item(x).Text = "C" THEN ActiveDocument.Fields("field2").Select "C1"&lt;BR /&gt;&lt;BR /&gt; Next&lt;BR /&gt;&lt;BR /&gt;END SUB&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Obviously change field1 and field2 for your names, and then change the comparison and select text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 17:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233848#M85363</guid>
      <dc:creator />
      <dc:date>2010-05-06T17:20:48Z</dc:date>
    </item>
    <item>
      <title>If statement to change selections between two multi select boxes.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233849#M85364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 19:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233849#M85364</guid>
      <dc:creator />
      <dc:date>2010-05-06T19:09:03Z</dc:date>
    </item>
    <item>
      <title>If statement to change selections between two multi select boxes.</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233850#M85365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the syntax to default an option to have multiple selections for Field2? I think I have tried everything so far and this is what I have come up with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF s.Item(x).Text = "OPCO" THEN ActiveDocument.Fields("GMM_Info").Select "C1" and "C2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 15:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-to-change-selections-between-two-multi-select-boxes/m-p/233850#M85365</guid>
      <dc:creator />
      <dc:date>2010-05-18T15:09:21Z</dc:date>
    </item>
  </channel>
</rss>

