<?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 Add values in a listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264638#M859575</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;Is it possible to add a few new values in an existed field(ListBox) based on a condition that if 1 of them get selected it should select a set of existed field values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: 1. I have a field called NAME with values A,B,C,D,E,F (Default values from Database)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. I wanted to have 2 more values in that field X,Y (Need to include manually) (Finally NAME field with values A,B,C,D,E,F,X,Y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. When I select X from this listbox, it should select A,B,C and when i select Y it should select D,E,F &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it possible to achieve ?&lt;/P&gt;&lt;P&gt;&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, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mohan2391</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Add values in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264638#M859575</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;Is it possible to add a few new values in an existed field(ListBox) based on a condition that if 1 of them get selected it should select a set of existed field values ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: 1. I have a field called NAME with values A,B,C,D,E,F (Default values from Database)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. I wanted to have 2 more values in that field X,Y (Need to include manually) (Finally NAME field with values A,B,C,D,E,F,X,Y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. When I select X from this listbox, it should select A,B,C and when i select Y it should select D,E,F &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it possible to achieve ?&lt;/P&gt;&lt;P&gt;&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264638#M859575</guid>
      <dc:creator>mohan2391</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add values in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264639#M859576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think it is possible, instead you may think of having one more field with the value X and Y and can link to specific combination of values of NAME in the script by joining them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using inputfield you may change values manually in UI but you would need to add placeholders manually in script - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FromDatabase:&lt;/P&gt;&lt;P&gt;INPUTFIELD Name;&lt;/P&gt;&lt;P&gt;Load RecNo() as Key,Name;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;F ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;Load RowNo() as Key,* inline [&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;X&lt;/P&gt;&lt;P&gt;Y ];&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, 17 Jan 2017 17:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264639#M859576</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-01-17T17:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add values in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264640#M859577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohan, try to use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Load from the source, using load inline as sample&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;//Loading new values&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in the front end, you need create a variable, I created vSelected.&lt;/P&gt;&lt;P&gt;Go to Settings - Document Properties - Triggers tab, on Field Event Triggers section, select NAME field and then click on Add Action(s) button on 'OnSelect' type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a new external action, Set Variable, and put the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable box: vSelected&lt;/P&gt;&lt;P&gt;Value box: =GetFieldSelections(NAME,',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this specific feature that you need, you must apply actions, so, create a new button object and add the next action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select in Field action on Action Type: Selection. Put the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field box: NAME&lt;/P&gt;&lt;P&gt;Searching String: =if('$(vSelected)' = 'X','('&amp;amp;Replace('A,B,C',',','*|*')&amp;amp;')', if('$(vSelected)' = 'Y','('&amp;amp;Replace('D,E,F',',','*|*')&amp;amp;')',vSelected))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, create a listbox object, using the NAME field and select X or Y value, then click on your new button and see the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enrique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-values-in-a-listbox/m-p/1264640#M859577</guid>
      <dc:creator>eespiritu</dc:creator>
      <dc:date>2017-01-17T18:41:50Z</dc:date>
    </item>
  </channel>
</rss>

