Hi,
I'm new to .nettiers (amazing bit of kit by the way) and am having some problems with the Filter functionality of the TList:
- A number of tables in the DB i'm working on have start and endDate fields - basically nothing is ever physically deleted, but rather logically deleted by populating the endDate field
- I use the .GetAll() method to get everything back into tht TList collection for a given entity
- I want to filter the collection using the following criteria string "EndDate = Null"
- This works fine unless the endDate is not null, in which case the method IsOK (private bool IsOk(object ObjectPropertyValue , string Operator, string UserValue)) trys to cast the UserValue (Null) to a datetime....which is not going to happen so I get an exception!
I realise that there are a number of alternatives (custom stored proc that returns all rows "where endDate is null" being the easiest I suspect), but don't want to go and do something bespoke whilst the functionality is already there in .nettiers.
Thanks in advance
Rich