<?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 Getting Selected Values and Selecting them in other field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201204#M59414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ToggleSelect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Sep 2009 22:59:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-28T22:59:05Z</dc:date>
    <item>
      <title>Getting Selected Values and Selecting them in other field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201203#M59413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I am not good enough to solve this, my goal is to switch from one date field to another while keeping the selections (i.e. byInvoiceDate vs. byOrderDate) I need to read the selected values on one field and apply them on another, then I clear the first one. Obviously the selection can include more than one QTR or Month, anyway the GetSelectedValues returns an array and you cannot just use A.text to pass it ...&lt;/P&gt;&lt;P&gt;Problem is that if I do it with the FOR only the last value of the array gets re-selected overwriting any previous selections that were applied in turn, I cannot find a way to use the Select directly with the object A as an array.&lt;/P&gt;&lt;P&gt;Any advice? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt; set A = doc.fields("Quarter").GetSelectedValues&lt;BR /&gt; for i = 0 to A.Count - 1&lt;BR /&gt; doc.fields("Quarter2").Select A.Item(i).text&lt;BR /&gt; next&lt;BR /&gt; doc.Fields("Quarter").Clear&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 22:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201203#M59413</guid>
      <dc:creator>eiconsulting</dc:creator>
      <dc:date>2009-09-28T22:26:42Z</dc:date>
    </item>
    <item>
      <title>Getting Selected Values and Selecting them in other field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201204#M59414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ToggleSelect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 22:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201204#M59414</guid>
      <dc:creator />
      <dc:date>2009-09-28T22:59:05Z</dc:date>
    </item>
    <item>
      <title>Getting Selected Values and Selecting them in other field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201205#M59415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot see how, for what API Guide tells ToggleSelect is a function &lt;EM&gt;to select field values matching a given string&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I don't have a string, do I have to transform my object A into a string and then apply that to the xx.Select?&lt;/P&gt;&lt;P&gt;I have specific values inside a variable (object A) and want to write them into a new field. I need to use xx.Select with an array instead of a single value. Or in a way that is cumulative. I even tried xx.Select.Add ...&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 15:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201205#M59415</guid>
      <dc:creator>eiconsulting</dc:creator>
      <dc:date>2009-09-29T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Getting Selected Values and Selecting them in other field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201206#M59416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Flavio,&lt;BR /&gt;think that a macro similar to the attached file should solve your problem&lt;/P&gt;&lt;P&gt;Have Fun!&lt;BR /&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 16:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201206#M59416</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-09-29T16:40:38Z</dc:date>
    </item>
    <item>
      <title>Getting Selected Values and Selecting them in other field</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201207#M59417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually your solution was SO INTENSIVE that I used only your last line. SUPER!&lt;/P&gt;&lt;P&gt;Instead of using xx.Select ... xx.SelectValues allows me to set an array in one shot. I'll try more exensively to see if i have to use the whole code but this appear really to be it.&lt;/P&gt;&lt;P&gt;[code/]&lt;/P&gt;&lt;P&gt;set A = doc.fields("Month2").GetSelectedValues --- gets the selections from Month2&lt;BR /&gt;doc.fields("Month").SelectValues A --- sets the selections on Month&lt;BR /&gt;doc.Fields("Month2").Clear --- clears the selections on Month2 to make it ready for next toggle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 17:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-Selected-Values-and-Selecting-them-in-other-field/m-p/201207#M59417</guid>
      <dc:creator>eiconsulting</dc:creator>
      <dc:date>2009-09-29T17:57:18Z</dc:date>
    </item>
  </channel>
</rss>

