<?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 Help with making external selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305305#M406351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Users have a spreadsheet with a column of values.&amp;nbsp; I'd like to make it easy for them to use those values as a selection in my QlikView app.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far the only way I've found to do this is, in Excel, to concatenate the column of values and insert a vertical bar "|" as a separator into a single cell.&amp;nbsp; The user then copies that cell and pastes it into an input field in the QV app.&amp;nbsp; This is a klunky and inelegant solution.&amp;nbsp; Can anyone think of a way to simplify this or come up with a better scheme to use a column of Excel values as selections in a QlikView app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 14:27:22 GMT</pubDate>
    <dc:creator>terrykavouras</dc:creator>
    <dc:date>2017-07-27T14:27:22Z</dc:date>
    <item>
      <title>Help with making external selections</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305305#M406351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Users have a spreadsheet with a column of values.&amp;nbsp; I'd like to make it easy for them to use those values as a selection in my QlikView app.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far the only way I've found to do this is, in Excel, to concatenate the column of values and insert a vertical bar "|" as a separator into a single cell.&amp;nbsp; The user then copies that cell and pastes it into an input field in the QV app.&amp;nbsp; This is a klunky and inelegant solution.&amp;nbsp; Can anyone think of a way to simplify this or come up with a better scheme to use a column of Excel values as selections in a QlikView app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305305#M406351</guid>
      <dc:creator>terrykavouras</dc:creator>
      <dc:date>2017-07-27T14:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with making external selections</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305306#M406352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Terry,&lt;/P&gt;&lt;P&gt;If you can access the script try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before loading the table containing the field you are making selections on enter this. &lt;SPAN style="font-size: 13.3333px;"&gt;User Selections.xlsx is a spreadsheet with one column. The first cell is the fieldname the rest are the values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserSelections:&lt;/P&gt;&lt;P&gt;LOAD *,'Y' as XLselection&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[User Selections.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFieldName = FieldName(1,'UserSelections'); //Gets the name of the field the selections are made on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingUserSelections: Mapping LOAD * Resident UserSelections; //makes a mapping table from the above&lt;/P&gt;&lt;P&gt;DROP Table UserSelections;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the point in your script where you load the table with the field you are selecting on add this as the top of a preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;ApplyMap('MappingUserSelections',[$(vFieldName)],'N') as [User Selected];&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the script has ran a listbox on the field &lt;SPAN style="font-size: 13.3333px;"&gt;[User Selected] should give the functionality you need.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If you need to do this through the front end then the method with the pipe '|' is what you're stuck with as far as I know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Good luck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305306#M406352</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-27T15:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with making external selections</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305307#M406353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the thoughtful and clear answer.&amp;nbsp; However I do need to allow the users to make the selections through the front end.&amp;nbsp; Many different users use the app to search for different values from different spreadsheets, so I can't build it into the data model as you demonstrated.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 15:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305307#M406353</guid>
      <dc:creator>terrykavouras</dc:creator>
      <dc:date>2017-07-27T15:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with making external selections</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305308#M406354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Terry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;Add an inputbox to your front end and add a variable &lt;EM&gt;vList&lt;/EM&gt; to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy a column out of your Excel sheet where the first cell is the name of the field and the rest are the values.&lt;/P&gt;&lt;P&gt;Paste that into the inputbox.&lt;/P&gt;&lt;P&gt;IMPORTANT: When you post into the inputbox you must do this. Click on the input box then click the grey button with the ellipsis (...) so you get the edit expression screen and paste in there. If you do that the data will be pasted in as a column. If you paste straight into the inputbox the data will not be accepted as a column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add these variables (not in the inputbox, use the Variable Overview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vTrimList =Trim(Left(Replace('$(vList)',Chr(10),'|'), len(Replace('$(vList)',Chr(10),'|'))))&lt;/P&gt;&lt;P&gt;vField =SubField(vTrimList,'|',1)&lt;/P&gt;&lt;P&gt;vValues =Replace('(' &amp;amp; Right(vTrimList,len(vTrimList)-len(vField)-1) &amp;amp; ')',' ','?')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nearly there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a button, label it Apply Filter or something. Add the action &lt;EM&gt;Select in Field&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;for Field enter : =vField&lt;/P&gt;&lt;P&gt;for Search String enter : =vValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now try it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If any of the selected values contain a space eg. 'Ken Dodd' the search string passed to QV will look for 'Ken?Dodd'. If you search a listbox for a value containing a space you'll see why this was done. Hopefully this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 20:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305308#M406354</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-07-27T20:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with making external selections</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305309#M406355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andrew, thank you very much.&amp;nbsp; It is a clever solution.&amp;nbsp; This worked great, albeit with some small alterations. My final variable looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vTrimList: Trim(Left(Replace('$(vList)',Chr(10),'|'), Len(Replace('$(vList)',Chr(10),'|'))-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the need to use dollar-sign expansion on the vList variable.&amp;nbsp; Also, I had to add parentheses and single quotes around the final variable like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vValues: chr(39) &amp;amp; '(' &amp;amp; $(vTrimList) &amp;amp; ')' &amp;amp; chr(39)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the button I used the Select in Field command and simply entered the name of the field and set the Search String to: =$(vValues)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 13:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-making-external-selections/m-p/1305309#M406355</guid>
      <dc:creator>terrykavouras</dc:creator>
      <dc:date>2017-09-22T13:52:00Z</dc:date>
    </item>
  </channel>
</rss>

