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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trigger automatic selection identical to possible values in another field.

Hi.

I have 2 fields: YearWeek1 and YearWeek2.

And now I would like an working function/trigger - (the best would bee a trigger 'OnAnyChange') -, that automaticly makes a selection in YearWeek2 identical to the possible values in YearWeek1 - that is: the selection in YearWeek2 should always 'mirror' the possible values in YearWeek1.

I guess, it's easy, but I just can't get it to work.

11 Replies
Anonymous
Not applicable
Author

This works for me:

sub FieldToField
set src=ActiveDocument.Fields("F1")
set dst=ActiveDocument.Fields("F2")
set F1Selections=src.GetPossibleValues
dst.SelectValues F1Selections
end sub

Not applicable
Author

Hi Michael S.

Thanks.

I got it to work with a Set Analysis and the concat-function as discribed in the thread:

http://community.qlik.com/media/p/72390.aspx