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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

corresponding listbox values come with selection automatically and viceversa

Hi all,

I have 2 fields say F1 and F2

assume this is the data

F1,F2

A,1

B,2

C,3

D,4

I have taken these 2 fields in seperate listboxes.

Now if i select F1 listbox data,the corresponding data in F2 listbox needs to select automatically and viceversa.

I am doing this process but not achieve the exact result.

Field even trigger->Onselect for F1

     Action1->Clearfield->F2

     Action2->SelectPossible->F2

     Action3->ClearField->If(GetSelectedCount(F1)>0,'F2')

It is not exactly working at the time of deselecting F1.

I need your ideas on this one.

Thanks in advance.

Regards

Kumar

11 Replies
Not applicable
Author

Hi,

By default list boxes has the functionality that are asking.

and why are you using triggers??

If you need only value to select at a time, use the option:  general->always one selected value option

regards,

Niranjan M

Not applicable
Author

Hi,

Just go to document property -> select triggers tab.

There you can see the field event triggers. Select F1 field and click the button OnSelect and add the action as select possible. This will ask you the field name, there you give the field name as just F2. This will work.

Thanks,

Srini.

sujeetsingh
Master III
Master III

Paste a sample..

Dear listboxes have the linking..by default

Not applicable
Author

Niranjan,

I think u didn't get my point

I don't want to select the F2 directly.

But i need to catch those values in a variable.

The only option for me is i can select F1.

So when i select F1,the corresponding F2 values come with selections(Green color).

At this time i can write the expression for catching the values of F2 in a variable.

Hope now you understand.

Regards

Kumar

Not applicable
Author

Hi,

I placed a sample application with requirement, hope it will help You.

Niranjan M.

Not applicable
Author

Hi guys,

Sorry for the late reply.I don't have the software even personel edition.

Now i am having that one.

here i am attaching one sample app with my requirements inside of the app.

Plz check and give your quick responses.

Regards

Kumar

Not applicable
Author

Niranjan,

Sorry for late reply.

Your solution was helpul to me.

Can you please check my attached sample file and send me your response for the Note:3 in the attached app.

regards

kumar

Not applicable
Author

Just this expression will provide you the note 3.

=Concat(F1ID&'.'&F2ID,',')

Thanks,

Srini

beeaj2011
Contributor III
Contributor III

Great stuff Niranjan

it is very useful for me for a country / currency selection !!

Took me a few moments to find the trigger(s) behind the fields on document settings , perhaps `I didn't read the whole blog on this

thnx

Ton Kattevilder