I'm looking closer at your example code, and it looks like you are trying to do something that is not supported by data assist or any other webassist tool
you are trying to dynamically set the search field and criteria based on the selections made in the dropdowns.
this is not supported functionality in data assist.