I had a somewhat same customization before. i had a flex relate field and they want to search without the need to select a module. So what i did was add the flex relate to the filter <root>/modules/<myMod>/clients/base/filter/default/default.php
Then i created a logic hook before_filter that would help you insert or modify the sugarquery being used before it is actually run.
I had a somewhat same customization before. i had a flex relate field and they want to search without the need to select a module. So what i did was add the flex relate to the filter <root>/modules/<myMod>/clients/base/filter/default/default.php
Then i created a logic hook before_filter that would help you insert or modify the sugarquery being used before it is actually run.