| 
	Group: StrataFrame UsersPosts: 277, 
    Visits: 1.1K
 
 | 
                    
			            Hi,
 I wonder if your intention is to filter the results of the search query? If so, you can add a where clause in the BrowseDialog_Searching event. The following example adds a where condition that only returns records which have two fields equal to 0:-
 
 // Add a "Where" clause to only include records where FIELD1 = 0 and FIELD2 = 0
 
 System.Collections.ArrayList value = new System.Collections.ArrayList();
 
 value.Add(0);
 
 MicroFour.StrataFrame.Data.WhereStatement where1 = new MicroFour.StrataFrame.Data.WhereStatement(new String[] { "FIELD1" }, value, MicroFour.StrataFrame.Data.WhereStatementTypeOptions.Equals);
 
 e.RawWhereStatementsCollection.Add(where1);
 
 MicroFour.StrataFrame.Data.WhereStatement where2 = new MicroFour.StrataFrame.Data.WhereStatement(new String[] { "FIELD2" }, value, MicroFour.StrataFrame.Data.WhereStatementTypeOptions.Equals);
 
 e.RawWhereStatementsCollection.Add(where2);
 
 Hope this helps.
 
 
 
 |