PredicateFactory with Dynamic Field & Values

Posts   
 
    
lotek
User
Posts: 56
Joined: 14-Sep-2005
# Posted on: 08-Oct-2005 05:03:41   

I basically want to create a scenario where a user can pick a field from a drop down list and enter a corresponding value. I then want to use those values in a predicate to filter my typedview.

I got the field index by: EntityFieldIndex fieldEnum = (EntityFieldIndex) System.Enum.Parse(typeof(EntityFieldIndex), fieldName, true);

Now i am not sure how to deal with the value. It could potentially be string, int, datetime, etc...

Is there any other way to handle this type of situation in llblgen? I basically need to create an interface that allows users to select a field, a condition, and a value to filter a result.

Thanks Matt

sparmar2000 avatar
Posts: 341
Joined: 30-Nov-2003
# Posted on: 08-Oct-2005 17:46:43   

Matt, Have a look at the following thread:

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=332

in perticuler the code example by Frans.

Hope this helps.

Suresh