Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Auto select the same value in another field

Hi,

I have 2 year fields named 'JAARINGANG' and 'year', i need two year fields ótherwise i can't do some calculations. A year from 'JAARINGANG' is linked to multiple years from the field 'year'. So for example if i  select 2011 from JAARINGANG it matches 2011 and 2012 from 'year'. I want that when i select a year in 'JAARINGANG' it automaticly select the same year in the field 'year'

How can i set a triger that if i, for example, select 2011 in 'JAARINGANG' it automicly select 2011 in the field 'year'?

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Yes, add an action to the OnSelect trigger on JAARINGANG. Choose as field year and as search string ='('&Concat(DISTINCT JAARINGANG,'|')&')'


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar

Yes, add an action to the OnSelect trigger on JAARINGANG. Choose as field year and as search string ='('&Concat(DISTINCT JAARINGANG,'|')&')'


talk is cheap, supply exceeds demand
Not applicable
Author

Perfect, thanks!

Not applicable
Author

Hi

Gysbert_Wassenaar

The concat function will make sure all the selected values are added to the search string. If you select 2011 in JAARINGANG then 2011 will be selected in year. If you select 2011 and 2012 then both these values will be selected in year too.


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks