I am adding some of the nifty new features in the latest ofbiz. One is the autocomplete feature. One of these screens is LookupProduct.
This screen passes in all the parameters in the inputFields parameter to "performFind". I calling this from a screen that looks up inventory items in a facility and therefore, there is a facilityId in parameter list. When performFind is done, it looks up the partial productId entered in the LookupProduct dialog and also passes in the facilityId. Because none of my products is associated with a single facility, that field is empty in my Product table and therefore, the search returns no values. So, my question is, how can I restrict the performFind to just those fields in the dialog [productId, internalName, brandName]; There is field called "searchFields" in LookupProduct which contains the only parameters that should be passed to prepareFind. Is there some way I can make a groovy call with this value to get just those values if they exist in the parameters list? For the time being, I added a "searchFields" parameter to performFind and passed only those fields along with their _op and _ic fields to prepareFind and that all works, but I would like to not have to modify that java code. Skip