Well JobPart moves the search to the JobPart (JobProd) table… So you may want to change it to JobHead
According to this other post the name of the Hash is indeed JobHead
I’m about at this point now! I’m trying for the first time to run the BL Tester from my desktop after copying the BL Tester folder to my system, and I’m getting the same error as above. Anyone have any luck resolving this?
So this leaves my wondering, what is the best way to determine what the Hash table name for the whereClause search options should be?
I am struggling to get the whereClause to apply with a Corrective Action search.
I have tried DMRCorAction, CorrectiveAction, but every time it runs it returns all records and when I run a trace it does not show any whereClause set.
Chris, yes tried those as well (actually I had tried DMRCorAct first as it was the table name). I tried CorrectiveAction as it was the adapter prefix. Both do not seem to be applying any filter as all rows are being returned.
@danbedwards thanks, I tried using the parameter name as well, that didn’t work, first 20 rows still return. Here is my code snippet, everything works except I don’t get the ActionID I am setting no where in the list.
CorrectiveActionAdapter adapterCorAct = new CorrectiveActionAdapter(this.oTrans);
adapterCorAct.BOConnect();
// Set whereClause
SearchOptions opts = new SearchOptions(SearchMode.AutoSearch);
String whereCls = "ActionID = '" + ActionID + "'";
opts.NamedSearch.WhereClauses.Add("whereClauseDMRCorAct", whereCls);
opts.PageSize = 20; //return this many rows
var x = true;
// Querying Corrective Action by Action ID (GetList)
grdCorAct.DataSource = adapterCorAct.GetList(opts, out x);
adapterCorAct.Dispose();
Thanks @Chris_Conn that was it. Unbelievable, I would not have tried that in a million years! Any idea if BaseList is like a default or something? Or is a decompile needed to be sure? Why isn’t there any consistency?
I have another search adapter I’ve been struggling with too for Projects I’m going to try ‘BaseList’ on that too.