Group: StrataFrame Users
Posts: 277,
Visits: 1.1K
|
Hi Marcia,
Sorry for the late reply. Is this still your code?
System.Collections.ArrayList value = new System.Collections.ArrayList(); value.Add(AppMain.Current_Filter); MicroFour.StrataFrame.Data.WhereStatement WhereClause = new MicroFour.StrataFrame.Data.WhereStatement(new String[] { "ProvID" }, value, MicroFour.StrataFrame.Data.WhereStatementTypeOptions.In);
Assuming you are still using the code above, I think AppMain.Current_Filter is the problem. I suspect it is a list of provider ID numbers but they are being added to the value array as a single element. They should be split and added as individual array elements. For example, take a look at this code:-
// This code adds a WHERE clause of "ID IN (10000145, 10000146, 10000149) System.Collections.ArrayList value = new System.Collections.ArrayList(); value.Add(10000145); value.Add(10000146); value.Add(10000149); MicroFour.StrataFrame.Data.WhereStatement where1 = new MicroFour.StrataFrame.Data.WhereStatement(new String[] { "ID" }, value, MicroFour.StrataFrame.Data.WhereStatementTypeOptions.In); e.RawWhereStatementsCollection.Add(where1);
The above code definitely 100% works so if you can split AppMain.Current_Filter into separate IDs and add them to the array then you could be in luck. If it still doesn't work, can you give me an example for AppMain.Current_Filter?
Aaron
|