The fcSDK now supports filtering ClarifyGenerics using nested And and Or operators. In the past fcSDK only supported And filtering via the AppendFilter methods. Limiting filtering to simple And filtering made the FCGeneric class easier to use but limited the flexibility with which you could select records from your Clarify database.
fcSDK developers have a new starting place for filtering ClarifyGeneric.Filter. This is the root filter for the ClarifyGeneric and it starts out empty. To add constraints to the records returned by a query AddFilter() needs to be called passing in a filter. Fitlers are easily created using the FilterType factory object. The following example shows some basic AND filtering against the root filter:
[C#]
ClarifyDataSet ds = new ClarifyDataSet(session); |
The generic's root filter property exposes an AndFilter. Thus all filters added to the root filter will be separated by AND keywords as in the example above. OR filtering is done in a similar fashion but an OrFilter must first be created and added to the root filter. The following example shows a simple OrFilter in action:
[C#]
ClarifyDataSet ds = new ClarifyDataSet(session); |
[C#]
ClarifyDataSet ds = new ClarifyDataSet(session); |
[C#]
ClarifyDataSet ds = new ClarifyDataSet(session); |
© 2004 First Choice Software, Inc. - Clarify, Amdocs, and related products and names are copyright and trademark Amdocs, Inc. - .NET, Visual Studio.NET, C#, Visual Basic and related products are trademark Microsoft corporation - All rights reserved.