SmartClient Version: v13.0p_2023-08-29/AllModules Development Only (built 2023-08-29)
sorry for the mispelled title, should be "questions about DataSource.splitCriteria()"
Hello, if I define an AdvancedCriteria like this:
and than call
I get this warning:
that "second-level operator:and" part of the message doesn't seem right in this case.
Second question. If I define another criteria:
and then call
I get no warning, but a simple criteria like this:
Without a warning...this doesn't seem right. Is it expected?
sorry for the mispelled title, should be "questions about DataSource.splitCriteria()"
Hello, if I define an AdvancedCriteria like this:
Code:
var c = { _constructor:"AdvancedCriteria", operator:"and", criteria:[ { fieldName:"countryName", operator:"iContains", value:"a" }, { fieldName:"population", operator:"lessThan", value:100000 }, { fieldName:"independence", operator:"greaterThan", value:"1500-08-02" } ] };
Code:
worldDS.splitCriteria(c, ["population"]);
Code:
*11:55:20.994:XRP0:WARN:Log:splitCriteria: advanced criteria second-level operator:and for field:population cannot be converted to simple criteria format
Second question. If I define another criteria:
Code:
var c = { _constructor:"AdvancedCriteria", operator:"and", criteria:[ { fieldName:"countryCode", operator:"equals", value:"DO" }, { fieldName:"countryName", operator:"iContains", value:"a" } ] };
Code:
worldDS.splitCriteria(c, ["countryName"]);
{countryName: 'a'}
Comment