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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nigel987
Creator II
Creator II

Trigger to undo a selection in another field upon removal of a selection

Hi,

I'm quite new to QlikView and not yet very familiar with the terminology. I hope my question is still understandable. Here's want I'm trying to do:

I have two listboxes, one with the field date1, the other one with the field date2.

When I select date1, I want to have the same date to be selected in date2. I achived this with a trigger on field level. Upon selection of field date1, the field date2 gets selected with =GetFieldSelections(date1). So far so good.

When I deselct a date in field date1, I want a trigger that deselects the value in date2 as well. How can I manage to do that? I tried all kinds of combinations of the triggers, but failed.

Thanks for any hint.

3 Replies
morganaaron
Specialist
Specialist

Hi Nihal,


Are the tables linked at all? I've found when dealing with this that if the tables aren't linked, it reflects the de-select, but if they are then it won't. The only way I've found around this is to create a custom clear button that when clicked clears both fields through actions. There may well be a way, but I haven't found it yet - I'm unsure why it seems to fire the trigger on a deselect when not linked but doesn't when linked - I'm sure there's a logical reason behind it that I'm unaware of!

nigel987
Creator II
Creator II
Author

Hi Aaron,

the tables are not linked. The custom clear button is not useful for my problem, as I have several fields where I wish to have the describes behaviour (year field, month field, day field, etc.)

Thanks!

nigel987
Creator II
Creator II
Author

Hi, has noone an idea how I could solve this? I expected it to be pretty straight-forward but am surprised myself that I cannot find out how to achieve it.

Thanks for any advise!