Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hierarchy ListBox ?

Hi folks,

I have a List box it has the field Region.It is a tree view.in this region i have Region@country@state@city like that i have.

assume that field i am using in list box with show tree view with '@'

Now my requirement is.if i select any of the value either it can be Region or Country or State or City.I want to show like below

He selected-'Name'

suppose if i select only Region(+) i want to show He selected-Asia Region

or if i select only Region(-) country i want to show He selected-country name

or if i select only Region(-) country(-) State i want to show He selected-State name

or if i select only Region(-) country(-)State(-)City i want to show He selected-City name

4 Replies
senpradip007
Specialist III
Specialist III

Use this expressions

='He selected ' & Subfield(TreePath, '/', -1)

Hope it will help you.

Not applicable
Author

Hi,

But it will give the last value from treepath field.

my requirement is not like that if i click on any level i want to show that level field value

Not applicable
Author

Hi,

I didn't get any answer. If u know plz give me the answer.

thanks in advance

senpradip007
Specialist III
Specialist III

Could you please upload sample app?