<?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: Trigger Copy Selections to another object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155537#M31752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, I have just been struggling with this issue for several hours!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 06:18:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-09T06:18:11Z</dc:date>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155530#M31745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have multiple calendars in my data model, Order Date and Ship Date.&lt;/P&gt;&lt;P&gt;I have an Order Tab and a shipments tab.&lt;/P&gt;&lt;P&gt;I would like to use the appropriate calendar dimensions on each tab but I don't want the users to have to reselect date values when they switch between orders and shipments.&lt;/P&gt;&lt;P&gt;So I created variables to store the selections for Year, month and week. then when the sheet loses focus I assign selections to the variables using getfieldselections()&lt;/P&gt;&lt;P&gt;Then when the sheet gets focus it reads the variables and applies the selection to them.&lt;/P&gt;&lt;P&gt;This works perfectly until I select more than one value.&lt;/P&gt;&lt;P&gt;I think there is something missing in the way I am passing the value to the selection but it appears that it may not be possible to pass a list to the make selection action anybody have a tip for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 03:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155530#M31745</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2010-05-19T03:22:05Z</dc:date>
    </item>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155531#M31746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;The attached application allows for the selection of multiple userid's on one tab, stores them in a variable OnLeaving sheet, then creates a selection based on this variable on activated sheet.&lt;/P&gt;&lt;P&gt;You should be able to expand on this to store Year, Month, and Week fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most difficult thing was to figure that the search string used to create the selection in the action for multiple values is "(value1|value2|value3)"&lt;/P&gt;&lt;P&gt;To build the string we use the following code in the "Set Variable" action on the first tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='(' &amp;amp; concat(distinct userid, '|', fieldindex('userid', userid)) &amp;amp; ')'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hopefully this explains what is going on in the qvw. Let me know if you need more details.&lt;/P&gt;&lt;P&gt;-Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 06:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155531#M31746</guid>
      <dc:creator />
      <dc:date>2010-05-19T06:56:12Z</dc:date>
    </item>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155532#M31747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I knew I just had the wrong syntax for the list, of all the delimiters I never thought of the "|"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 11:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155532#M31747</guid>
      <dc:creator>chriscammers</dc:creator>
      <dc:date>2010-05-19T11:48:15Z</dc:date>
    </item>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155533#M31748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;the search string using the pipe symbol '|' works fine as long as the selected values don't contain any blanks. Any idea for the syntax to use in that case, e.g. "(value with blank 1|value2|value with blank 3)" ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Miko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 10:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155533#M31748</guid>
      <dc:creator>mikofme</dc:creator>
      <dc:date>2010-07-21T10:05:28Z</dc:date>
    </item>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155534#M31749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to include a value that contains a blank, you will need to quote each search string. Building upon the previous example, this would mean that we need to include a single quote inside of a quoted string due to the way we build the string using concat.&lt;/P&gt;&lt;P&gt;To "escape" the single quote, we will use the function chr() function to create a single quote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;='('&amp;amp;chr(39) &amp;amp; concat(distinct userid, chr(39)&amp;amp;'|'&amp;amp;chr(39), fieldindex('userid', userid)) &amp;amp; chr(39)&amp;amp;')'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;-Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 17:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155534#M31749</guid>
      <dc:creator />
      <dc:date>2010-07-21T17:46:27Z</dc:date>
    </item>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155535#M31750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;thanks for your idea, but it doesn't work.&lt;/P&gt;&lt;P&gt;Try this to verify: in the given example app (&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.11.25.70/pass_5F00_selections_5F00_over_5F00_tabs.qvw"&gt;pass_selections_over_tabs.qvw&lt;/A&gt;, see above), edit the script as follows:&lt;BR /&gt;in line 26, modify "A" to "A A" (just add the characters "blank" and "A")&lt;BR /&gt;in line 31, modify "A" to "A A"&lt;BR /&gt;in line 31, modify "A" to "A A"&lt;/P&gt;&lt;P&gt;Run the script, select userid "A A" on the "Main" TAB and switch to "Show Variables": the userid is selected, but in the listbox "other_users" it isn't.&lt;/P&gt;&lt;P&gt;Any other idea to manage values containing a "blank"?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regs,&lt;BR /&gt;Miko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 14:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155535#M31750</guid>
      <dc:creator>mikofme</dc:creator>
      <dc:date>2010-07-28T14:53:41Z</dc:date>
    </item>
    <item>
      <title>Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155536#M31751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miko,&lt;/P&gt;&lt;P&gt;In your data changes, I think you meant... in line 40, modify "A" to "A A" instead of repeating 31.&lt;/P&gt;&lt;P&gt;In addition to adding the quotes in my last post, you also need to change the OnActivate action which is currently sets other_users to =v_userid, should be changed to use dollar-expansion like this; =$(v_userid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 15:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155536#M31751</guid>
      <dc:creator />
      <dc:date>2010-07-28T15:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger Copy Selections to another object</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155537#M31752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much, I have just been struggling with this issue for several hours!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 06:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-Copy-Selections-to-another-object/m-p/155537#M31752</guid>
      <dc:creator />
      <dc:date>2013-10-09T06:18:11Z</dc:date>
    </item>
  </channel>
</rss>

