Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us for a live Q&A! September 21, 10 AM ET - Onboarding Fast in Qlik Sense SaaS! REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Tree View Hierarchy - select entire group?

Hi folks -

I have a hierarchy that displays in tree view.  I would like to be able to click on a group and have it select every item underneath it.  For instance, if we look at the following example:

FOOD

     - Vegetables

              - Onion

              - Pepper

              - Carrot

     - Fruit

               - Banana

               - Apple

               - Orange

Right now, I can select Onion, Pepper, and Carrot by clicking them individually or dragging across them.  What I would like to do is click "Vegetables" and have it select Onion, Pepper, and Carrot for me.  Thanks!

1 Solution

Accepted Solutions
MarcoWedel

like this:

QlikCommunity_Thread_123450_Pic1.JPG.jpg

QlikCommunity_Thread_123450_Pic2.JPG.jpg

QlikCommunity_Thread_123450_Pic3.JPG.jpg

LOAD * INLINE [

    Dish

    Vegetables

    Vegetables/Onion

    Vegetables/Pepper

    Vegetables/Carrot

    Fruit

    Fruit/Banana

    Fruit/Apple

    Fruit/Orange

];

regards

Marco

View solution in original post

7 Replies
Not applicable
Author

This could at least get you started:

For a hierarchy field "Field0", you could add a field event trigger to the OnSelect event.

I tried the action "Select in Field" for field "Field0", using the search string exactly as copy and pasted below:

='*$(=Field0)*'

This works as long as the hierarchy branch that you're selecting is expanded.

Not an ideal solution, but maybe it gives you ideas on how to perfect the interface

See attached.

nilo_pontes
Partner
Partner

Hi Marco,

Try to collapse the group and than select it.

It should works.

Best regards

Not applicable
Author

Hi Nilos -

Unfortunately, that doesn't seem to work. 

nilo_pontes
Partner
Partner

Marco,

Try it with the attached file, please.

MarcoWedel

Hi Marco,

you just have to add the group names ("vegetables", "fruit") as additional rows in your hierarchy field.

hope this helps

regards

Marco 😉

MarcoWedel

like this:

QlikCommunity_Thread_123450_Pic1.JPG.jpg

QlikCommunity_Thread_123450_Pic2.JPG.jpg

QlikCommunity_Thread_123450_Pic3.JPG.jpg

LOAD * INLINE [

    Dish

    Vegetables

    Vegetables/Onion

    Vegetables/Pepper

    Vegetables/Carrot

    Fruit

    Fruit/Banana

    Fruit/Apple

    Fruit/Orange

];

regards

Marco

View solution in original post

Not applicable
Author

Perfect - thank you Marco!