Announcement

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

    FilterBuilder with DataSource Field ComboBox reutns incorrect Operator

    I am using:
    SmartClient Version: v10.0p_2015-06-25/Pro Deployment (built 2015-06-25)
    On Firefox ESR 38.2.1

    I have created a FilterBuilder with a DataSource attached. When for a field in the Data Source I set Editor Properties to a ComboBoxItem when the criteria is returned from the FilterBuilder for iequals, inotequals, icontains, etc it always returns a istartwith operator instead of the appropriate operator.

    Example:

    <CODE>
    XJSONDataSource ds = new XJSONDataSource();

    DataSourceTextField fld = new DataSourceTextField("test","Test");
    FieldDS options = FieldDS.getInstance();
    ComboBoxItem auto = new ComboBoxItem();
    auto.setOptionDataSource(options);
    auto.setDisplayField("name");
    auto.setValueField("id");
    auto.setShowPickerIcon(false);
    auto.setFetchDelay(500);
    auto.setLoadingDisplayValue(null);
    auto.setShowOptionsFromDataSource(true);
    Criteria criteria = new Criteria("field", fields[f]);
    criteria.addCriteria(new Criteria("objectType", objectType));
    criteria.addCriteria(new Criteria("date", new Date().getTime()+""));
    auto.setPickListCriteria(criteria);

    fld.setEditorProperties(auto);

    ds.setFields(fld);

    ds.setDataURL("..search");
    ds.setDataProtocol(DSProtocol.GETPARAMS);
    ds.setDataFormat(DSDataFormat.JSON);
    ds.setRecordXPath("data");

    FilterBuilder filterBuilder = new FilterBuilder();
    filterBuilder.setSaveOnEnter(true);
    filterBuilder.setShowSubClauseButton(false);
    filterBuilder.setTopOperatorAppearance(TopOperatorAppearance.NONE);
    filterBuilder.setSortFields(false);
    filterBuilder.setDataSource(ds);

    </CODE>

    If I do not set the Editor Properties then the correct operator is returned.

    #2
    I have the same problem. Any solutions yet ?

    Comment


      #3
      I'm seeing this as well. Has Isomorphic taken a position on this ?

      Comment


        #4
        We've just re-tested this with the latest patched versions and we can't reproduce the problem. We suspect this has been fixed for a while, by a fix for some other problem.

        Can anyone *who is using the latest patched build* still reproduce this?

        Comment

        Working...
        X