Hi,
I created a custom class inheriting from SelectItem and used it as a filterEditorType for fields of type enum. I set:
and while using it I get warnings from SmartClient:
Why is inSet not mentioned in allowed type operators for enum? Result of:
doesn't contain inSet and notInSet. I believe it should.
Version: v10.1p_2016-02-12/PowerEdition Deployment
I did it because I heed to run updates on filtered data, and update operations treat equals with array parameters different than fetches do. Eg. with criteria:
fetch constructs "field IN (1, 2)", while update does "field = '[1, 2]'"
Is it a bug, or correct behavior? If correct, can I tell update to build criteria in the same way as fetch does?
I created a custom class inheriting from SelectItem and used it as a filterEditorType for fields of type enum. I set:
- multiple: true
- operator: inSet
and while using it I get warnings from SmartClient:
Code:
*15:59:05.518:MUP9:WARN:DataSource:cellsDS:Operator inSet is not valid for field TECH. Continuing anyway.
Code:
(isc.DataSource.create()).getTypeOperators("enum")
Version: v10.1p_2016-02-12/PowerEdition Deployment
I did it because I heed to run updates on filtered data, and update operations treat equals with array parameters different than fetches do. Eg. with criteria:
Code:
fieldName: "field" operator: "equals", value: [1, 2]
Is it a bug, or correct behavior? If correct, can I tell update to build criteria in the same way as fetch does?
Comment