Dynamic query for multiselect field?

This is the one I meant: Programmatically change the content of the file field - #18 by VECT0R