<?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: How to display current selections with separators in a textbox? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177204#M521735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venugoapl,&lt;/P&gt;&lt;P&gt;Use GetCurrentSelections: GetCurrentSelections(';',' ',',').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor284"&gt;&lt;/A&gt;&lt;A name="getcurrentselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[RecordSep [, TagSep [,ValueSep [, MaxValues [, State]]]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns a string with the current selections in the document. It is possible to query an alternate state.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;RecordSep&lt;/SPAN&gt; is the separator to be put between field records. The default is &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;TagSep&lt;/SPAN&gt; is the separator to be put between the field name tag and the field values. The default is ': '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;State&lt;/SPAN&gt; is the alternate state to query.&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( chr(13)&amp;amp;chr(10) , ' = ' ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' , 10 )&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 14:50:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-31T14:50:23Z</dc:date>
    <item>
      <title>How to display current selections with separators in a textbox?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177201#M521732</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 want to display the current filter selections in a text box with separators like below:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;Year: 2016; Month: May; Market: USA;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below code:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_146468911182842" jivemacro_uid="_146468911182842"&gt;
&lt;P&gt;='Year:'&amp;amp;GetFieldSelections (fiscal_year) &amp;amp;';'&amp;amp;'Month:'&amp;amp;GetFieldSelections (Month)&amp;amp;';'&amp;amp;'Market:'&amp;amp;GetFieldSelections (Market_Name)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;which returns the below output when the filters like month are not selected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM style="font-size: 13.3333px;"&gt;Year: 2016;Month:;Market:USA;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to hide the separator &amp;amp; the label when 'month' is not selected:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Year: 2016;Market:USA&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venugopal G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177201#M521732</guid>
      <dc:creator />
      <dc:date>2016-05-31T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display current selections with separators in a textbox?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177202#M521733</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;use if clause for it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(&lt;EM style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Month&lt;/EM&gt;)&amp;gt;0,'final_val : ' &amp;amp; GetFieldSelections(&lt;EM style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Month&lt;/EM&gt;) &amp;amp; ' ;')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 12:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177202#M521733</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-05-31T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to display current selections with separators in a textbox?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177203#M521734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;If(GetSelectedCount(&lt;STRONG style="font-size: 13.3333px;"&gt;fiscal_year&lt;/STRONG&gt;) &amp;gt; 0,&lt;/SPAN&gt; 'Year:' &amp;amp; GetFieldSelections (fiscal_year) &amp;amp; ';'&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt; If(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;GetSelectedCount(&lt;STRONG style="font-size: 13.3333px;"&gt;Month&lt;/STRONG&gt;) &amp;gt; 0,&lt;/SPAN&gt; &lt;/STRONG&gt;'Month:'&amp;amp;GetFieldSelections (Month) &amp;amp; ';'&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;amp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;'Market:'&amp;amp;GetFieldSelections(Market_Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 14:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177203#M521734</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-31T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to display current selections with separators in a textbox?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177204#M521735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venugoapl,&lt;/P&gt;&lt;P&gt;Use GetCurrentSelections: GetCurrentSelections(';',' ',',').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor284"&gt;&lt;/A&gt;&lt;A name="getcurrentselections"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[RecordSep [, TagSep [,ValueSep [, MaxValues [, State]]]]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns a string with the current selections in the document. It is possible to query an alternate state.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;RecordSep&lt;/SPAN&gt; is the separator to be put between field records. The default is &amp;lt;CR&amp;gt;&amp;lt;LF&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;TagSep&lt;/SPAN&gt; is the separator to be put between the field name tag and the field values. The default is ': '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;ValueSep&lt;/SPAN&gt; is the separator to be put between field values. The default is ', '. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;Maxvalues&lt;/SPAN&gt; is the maximum number of field values to be individually listed. When a larger number of values is selected the format 'x of y values' will be used instead. The default is 6. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;State&lt;/SPAN&gt; is the alternate state to query.&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( chr(13)&amp;amp;chr(10) , ' = ' ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' ) &lt;/P&gt;&lt;P class="Code"&gt;&lt;SPAN style="background-color: #3399ff; color: #ffffff;"&gt;getcurrentselections&lt;/SPAN&gt; ( chr(13)&amp;amp;chr(10) , ' : ' , ' ; ' , 10 )&lt;/P&gt;&lt;P class="Code"&gt;&lt;/P&gt;&lt;P class="Code"&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 14:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177204#M521735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-31T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display current selections with separators in a textbox?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177205#M521736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. It works for us. We are able to display:&lt;/P&gt;&lt;P&gt;Year: 2016; Month: January;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our requirement is to have only one label as "Timeline" for both:&lt;/P&gt;&lt;P&gt;Timeline: 2016; January;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timeline should appear even when any one value from Year &amp;amp; Month are selected:&lt;/P&gt;&lt;P&gt;Timeline: 2016;&lt;/P&gt;&lt;P&gt;Timeline: January;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 08:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177205#M521736</guid>
      <dc:creator />
      <dc:date>2016-06-02T08:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display current selections with separators in a textbox?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177206#M521737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max for the reply. We got some clues from your solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 08:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-current-selections-with-separators-in-a-textbox/m-p/1177206#M521737</guid>
      <dc:creator />
      <dc:date>2016-06-02T08:37:10Z</dc:date>
    </item>
  </channel>
</rss>

