Serenity: Set Criteria With Null Condition

Created on 6 Sep 2016  路  3Comments  路  Source: serenity-is/Serenity

Hi, Volcan

Please help,

How to set criteria with null condition

request.Criteria = Serenity.Criteria.and(request.Criteria,
[['EntryDate'], '=', 'Null'],
[['Result'], '!=', 'TBC'],
[['ReceivedDate'], '<>', 'Null']);

I have create above criteria but get an error "Conversion failed when converting date and/or time from character string".

Regards

Most helpful comment

['is null', ['EntryDate']]

['is not null', ['ReceivedDate']]

All 3 comments

image
image

['is null', ['EntryDate']]

['is not null', ['ReceivedDate']]

It's Perfect!

Thanks All...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnRanger picture JohnRanger  路  3Comments

moostafaa picture moostafaa  路  3Comments

ga5tan picture ga5tan  路  3Comments

Akarsh03 picture Akarsh03  路  3Comments

AmuthaKondusamy picture AmuthaKondusamy  路  3Comments