Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
kmswetha
Creator
Creator

Tree View list box

Hi,

Am using tree view by using hierarchy function.Everything is coming up well.

But when I want to put it in list box everything turns out to be gray.Is there any specific reason for this?

Labels (1)
10 Replies
MarcoWedel
MVP
MVP

Hi,

this script generates a list of all parent nodes paths:

i.e. each subpath of path 'A/A0/A00/A00001' is calculated and stored in a new field 'Path_Select' associated to the given field 'Path'.


Left(PATH,Index(PATH&'/','/',IterNo())-1)

extracts those subpaths beginning from the first character to the IterNo-th occurence of the delimiter '/'.

While IterNo()<=SubStringCount(PATH,'/')+1

iterates over each input row as often as the delimiter '/' is included in the path (+1).


hope this helps

regards

Marco