Hi david,
I think that Isomorphic meant (correct me if I'm wrong) NOT_NULL (http://www.smartclient.com/smartgwte....html#NOT_NULL) all the time when writing IS_NULL.
Best regards,
Blama
Announcement
Collapse
No announcement yet.
X
-
It's not really clear how your code is organized, but you want to use DataSource.combineCriteria() or similar criteria manipulation approaches to add the IS_NULL Criterion to the Criteria you are currently producing.
Leave a comment:
-
I am sorry, I still not understand it. I have this code:
Code:op1 = new FloatItem(); op1.setOperator(OperatorId.LESS_THAN);
One way how to do it, which I know is to change criteria in operationBinding, but I don't like this solution as I have some compound component and when using it, it would require to change manually each datasource in which it would appear(and if the change is forgotten, old behavior is back) Thats why I am looking for some solution which would be inside of that compound component(its CanvasItem with innerForm as Canvas and few existing items) and once in place would require no further coding.
Leave a comment:
-
Just to clarify, the UI problem created by SQL's null handling is that users often do not realize that they need to eliminate criteria entirely to see null-valued records.
Use the IS_NULL operator if you want to eliminate nulls. All operator types support combining via the Boolean operators.
Leave a comment:
-
Ok, I see it other way (how NULL(missing value) can be less(greater) than something?), but it is the chosen way of handling the problem in the library, so I reluctantly accept it ;-)
That brings me back to original question, how I can set it up on the field when I want to achieve above described behavior? Should I create operator with LESS_THEN and then on the server check all the LESS operators and remove half of the condition on the server resp. create a new criteria which includes only half of the original condition? Or add another criteria but then condition would be
Code:SELECT COUNT(*) FROM supplyItem WHERE ((supplyItem.nextShipment <= TO_DATE('2011-04-15 00:00:00','YYYY-MM-DD HH24:MI:SS') OR supplyItem.nextShipment IS NULL)) AND supplyItem.nextShipment IS NOT NULL
Maybe that IS_NULL operator you mentioned, but I cannot see the way how IS_NULL operator is going to help me to exclude NULLS from result once they are there, maybe I misunderstood operators: is there some way how to combine them?
Leave a comment:
-
That's widely considered an oddity of SQL which people work around in various way (including what we're using). To explicitly exclude nulls, there's an IS_NULL operator you can use.
Leave a comment:
-
What's your expected NULL treatment - greater than all other dates?
Leave a comment:
-
DateItem LESS_OR_EQUAL operator
Hi,
when I have DateItem or RelativeDateItem and set LESS_OR_EQUAL/LESS_THAN operator on them what is generated is:
Code:SELECT COUNT(*) FROM supplyItem WHERE ((supplyItem.nextShipment <= TO_DATE('2011-04-15 00:00:00','YYYY-MM-DD HH24:MI:SS') OR supplyItem.nextShipment IS NULL))
2.5.2011-04-12-EVALTags: None
Leave a comment: