<?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 OnOpen select multiple values in a field based on another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnOpen-select-multiple-values-in-a-field-based-on-another-field/m-p/379894#M141719</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;I have looked through many other discussions on here but not found anything that answers my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field "&lt;EM&gt;Stage&lt;/EM&gt;" which is a grouping of dates (e.g. &lt;/P&gt;&lt;P&gt;'Stage 1' = 1-7 Jan, &lt;/P&gt;&lt;P&gt;'Stage 2' = 8-13 Jan,&lt;/P&gt;&lt;P&gt;'Stage 3' = 14-20 Jan,&lt;/P&gt;&lt;P&gt;etc). &lt;/P&gt;&lt;P&gt;When the document is opened I want to automatically select all the 'completed' Stages in an OnOpen document trigger.&lt;/P&gt;&lt;P&gt;Thus on the 15th Jan, 'Stage 1' and 'Stage 2' should be selected in the field "&lt;EM&gt;Stage&lt;/EM&gt;", but not 'Stage 3' because it is not complete.&lt;/P&gt;&lt;P&gt;I have set up a new field called "&lt;EM&gt;Report_Stage&lt;/EM&gt;" which lists the completed stages (using LOAD DISTINCT Stage where date&amp;gt;Today).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set up the OnOpen trigger to &lt;SPAN style="text-decoration: underline;"&gt;set&lt;/SPAN&gt; in the field "&lt;EM&gt;Stage&lt;/EM&gt;" all the values from field "&lt;EM&gt;Report_Stage&lt;/EM&gt;" in the &lt;SPAN style="text-decoration: underline;"&gt;Search String&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;This is a text field so it needs a CONCATENATE of the individual values from "&lt;EM&gt;Report_Stage&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The examples I have seen so far use the &lt;EM&gt;GetFieldSelections &lt;/EM&gt;function, but in my example the fields are not selected, I just want to get all values from the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help with this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2012 11:51:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-22T11:51:48Z</dc:date>
    <item>
      <title>OnOpen select multiple values in a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/OnOpen-select-multiple-values-in-a-field-based-on-another-field/m-p/379894#M141719</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;I have looked through many other discussions on here but not found anything that answers my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field "&lt;EM&gt;Stage&lt;/EM&gt;" which is a grouping of dates (e.g. &lt;/P&gt;&lt;P&gt;'Stage 1' = 1-7 Jan, &lt;/P&gt;&lt;P&gt;'Stage 2' = 8-13 Jan,&lt;/P&gt;&lt;P&gt;'Stage 3' = 14-20 Jan,&lt;/P&gt;&lt;P&gt;etc). &lt;/P&gt;&lt;P&gt;When the document is opened I want to automatically select all the 'completed' Stages in an OnOpen document trigger.&lt;/P&gt;&lt;P&gt;Thus on the 15th Jan, 'Stage 1' and 'Stage 2' should be selected in the field "&lt;EM&gt;Stage&lt;/EM&gt;", but not 'Stage 3' because it is not complete.&lt;/P&gt;&lt;P&gt;I have set up a new field called "&lt;EM&gt;Report_Stage&lt;/EM&gt;" which lists the completed stages (using LOAD DISTINCT Stage where date&amp;gt;Today).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set up the OnOpen trigger to &lt;SPAN style="text-decoration: underline;"&gt;set&lt;/SPAN&gt; in the field "&lt;EM&gt;Stage&lt;/EM&gt;" all the values from field "&lt;EM&gt;Report_Stage&lt;/EM&gt;" in the &lt;SPAN style="text-decoration: underline;"&gt;Search String&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;This is a text field so it needs a CONCATENATE of the individual values from "&lt;EM&gt;Report_Stage&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The examples I have seen so far use the &lt;EM&gt;GetFieldSelections &lt;/EM&gt;function, but in my example the fields are not selected, I just want to get all values from the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help with this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 11:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnOpen-select-multiple-values-in-a-field-based-on-another-field/m-p/379894#M141719</guid>
      <dc:creator />
      <dc:date>2012-08-22T11:51:48Z</dc:date>
    </item>
  </channel>
</rss>

