I can successfully test an Item Type property that holds a string value, using for example WhereCriterion::CreateStringFilter. I don't see a similar function for Boolean properties, although there is WhereCriterion::CreateNumberFilter for numeric properties.
WhereCriterion::CreateStringFilter
WhereCriterion::CreateNumberFilter
How do I create a WhereCriterion for a Boolean property value? Should I use CreateNumberFilter and pass 0|1 obtained from the Boolean value?
WhereCriterion
CreateNumberFilter
0|1
will you like to try:
WhereCriterionPtr wh = WhereCriterion::CreateComparison (*WhereExpression::CreatePropertyExpression (L"myBool"), WhereCriterion::EQ, *WhereExpression::CreateConstant (ECN::ECValue(true)));
or WhereCriterionPtr testProp_IsTag = WhereCriterion::CreatePropertyComparison(L"IsTag", WhereCriterion::EQ, ECN::ECValue(true));
Thanks,
Mangesh