<?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: Trouble getting correct selections in Hierarchy Treeview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570479#M546851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would avoid triggers. It is much better to build this kind of logic into the data model. In your case, you could add a "Trees" table to your data model and make the selection there instead. Then you would select entire sub-trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read more about a "Trees" table on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;Unbalanced, n-level hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 10:18:54 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-02-26T10:18:54Z</dc:date>
    <item>
      <title>Trouble getting correct selections in Hierarchy Treeview</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570476#M546848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a hierarchy displayed as a treeview.&lt;/P&gt;&lt;P&gt;When a user clicks on a parent all children are automatically selected.&lt;/P&gt;&lt;P&gt;This seems to work well, however a problem occurs when a user has clicked on a leaf node (one selected value) and after that uses CTRL and selects an additional value. In that case the new value(s) will not be selected. &lt;/P&gt;&lt;P&gt;(.. but if the user uses CTRL and remove the leaf node and selects 2 or more new items it works....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution anyone? See attached .qvw file. I'm using QV 11.20&lt;/P&gt;&lt;P&gt;I've been using some trigger actions and a variable to accomplish the task so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;OIav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570476#M546848</guid>
      <dc:creator />
      <dc:date>2014-02-26T08:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting correct selections in Hierarchy Treeview</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570477#M546849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a treeview in another application and I don't get the same problem. I have just tried your example, when I removed all triggers it seemed to work! Do you need the triggers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 08:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570477#M546849</guid>
      <dc:creator />
      <dc:date>2014-02-26T08:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting correct selections in Hierarchy Treeview</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570478#M546850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erica,&lt;/P&gt;&lt;P&gt;The triggers are necessary, as I want to select all children when a parent is clicked, not only the one you click.&lt;/P&gt;&lt;P&gt;The default treeview function will not select all children automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Olav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 09:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570478#M546850</guid>
      <dc:creator />
      <dc:date>2014-02-26T09:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble getting correct selections in Hierarchy Treeview</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570479#M546851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would avoid triggers. It is much better to build this kind of logic into the data model. In your case, you could add a "Trees" table to your data model and make the selection there instead. Then you would select entire sub-trees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read more about a "Trees" table on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/11/11/unbalanced-n-level-hierarchies"&gt;Unbalanced, n-level hierarchies&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570479#M546851</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-26T10:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Trouble getting correct selections in Hierarchy Treeview</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570480#M546852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with henric. When you select the top of a hierarchy, all tyhe children are selected anyway in the&amp;nbsp; Belongsto table (so all the Akt_Foreldrenavn are selected). So the best option is to design the app around this hierarchical funcationality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, your triggers seem to work fine on my machine (QV10 sr6?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="scrsht.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53875_scrsht.png" style="width: 620px; height: 363px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 13:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-getting-correct-selections-in-Hierarchy-Treeview/m-p/570480#M546852</guid>
      <dc:creator />
      <dc:date>2014-02-26T13:00:15Z</dc:date>
    </item>
  </channel>
</rss>

