Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

View a hierarchy in a listbox to control a diagram

Hi, can the field location be represented in a structure? So, HQ marks all fields below. CI pretends, Concord ' and, Karlsruhe ' and HQ should be not selected any more. If Concord is selected, CI is selected, if ‘Concord ' and, Karlsruhe ' is selected, then CI is selected. Can the choice be indicated in the diagram or in an additional box?

HQ    

     CI

          Concord          
          Karlsruhe    

     PA         

          Bartelsville

Regards Stefan

4 Replies
Not applicable
Author

Hi Stefan,

To achieve this, you need to use the keywords "Hierarchy" or "HierarchyBelongsTo" in the script as prefix to load or select statement and then you can use the option "Show as Tree View" from the properties of list box (it is available in General tab)

Listbox1.bmp

Hope this helps!

Anonymous
Not applicable
Author

Hi, not really. Have you any idea what is wrong in my script?

NccStructure:

Hierarchy (structure_id, structure1, location_id1, location, abbreviation1, location_class1,'/')

Load structure_id,      

     structure as structure1,      

     location_id as location_id1,     

     location  as location      

     abbreviation as abbreviation1,     

     location_class as location_class1

Resident NCC_Data;

Not applicable
Author

Hi Stefan,

Syntax wise : There is comma missing after location.

Otherwise, looks good to me as long as the fields satisfy the criteria of the parameters of Hierarchy. (You can refer t the Help in Qlikview).

tresesco
MVP
MVP

Hello Stefan,

I have worked out and found. Hope this helps you. PFA.