I’m trying to implement this solution from @josecgomez to dynamically add criteria to a Quick Search from a custom button.
For a little background, I’ve added an active flag to the shipTo table and want to be able to optionally filter by this new field. The core issue is that my new Quick Search doesn’t automatically filter by the current customer and just pulls every Ship To location back.
It is in reference to this line of code: QuickSearchDataSet qsds = _qdA.QuickSearchData;
I’ve been looking everywhere but I can’t seem to figure out what reference I’m missing.
Below are all my reference and whatnot. I’m sure I have more than I need.
Thank you for the reply! That’s what I thought too. But I have that in already as a custom reference. I tried adding it and removing it too just to be sure.
Hmm… weird. What I did was I went into a customization, put in your line of code, seen the error, and then added the reference. Once I did that, the error went away. I think it’s something else going on there.
Silly question - did you try saving the customization, closing the form and then open it again ?
Just to cover all my bases I restarted everything after saving the customization and I’m still getting the same error. I made a new, empty customization and just added that line of code and the Ice.Adapters.QuickSearch dll (Just to help ensure nothing else in the customization was interfering) and I’m still getting the same error.
Trying to figure out if this is an issue with my setup. Went through all the steps with a coworker on his machine and he’s getting the same error with the QuickSearchDataSet as well. I’ve also gone through and re-installed Epicor entirely.
There is an Ice Tools guide, don’t have the link on hand. It can be helpful.
The lack of intellisense/code completion in classic forms customizations is a hindrance. It’s
a crutch I really miss.
Sometimes I open up the dlls in visual studio, or dnspy, and look around.
To be perfectly frank in this case however, this is what I did:
I knew this code worked, as I’ve used it and done something similar. I couldn’t
remember where though. I knew it needed that type, and was missing a “using” statement.
So I searched the forum for “QuickSearchDataSet”. Couldn’t find the “using” listed in any of
the posts, but I found this post with a trace in it:
In that trace there was this line: <parameter name="ds" type="Ice.BO.QuickSearchDataSet">