Attachment #3 Script
Show All Records can be deleted from your script and the results produced by it will not change.
You can modify the script shown to have one set field step for each global search field all in one script. You can put the expression that calculates what criterion to enter inside an IF function such that nothing is specified for that field if the corresponding global field is empty.
Using the above set field step as an example:
Set Field [OIV::Application_Name ; If ( Not IsEmpty ( GlobalSearchFields::gApplicationNameSearch ) ; "==" & Quote ( GlobalSearchFields::gApplicationNameSearch ) ) ]
For additional examples of scripted finds--including ways to make this an "OR" search instead of an "AND" search: Scripted Find Examples
Thanks... Great Help