Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    API hole - Criteria/DataClass Long

    Bug: I want to set a Criteria that is a Long ID value. However, there is no method Criteria.addCriteria(String,Long).

    Expected: addCriteria should support all basic types.

    Workaround:
    Code:
    		Criteria criteria = new Criteria();
    		JavaScriptObject jso = criteria.getJsObj();
    		JSOHelper.setAttribute(jso, fieldName, value.longValue());
    I recall that we've discussed this before. The Long support is patchy in SmartGWT (perhaps because there is no Long in JS, but even so, there is in Java and GWT - and my code)
Working...
X