Announcement

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

    FilterBuilder.setSortFields(false) not observed on subclause

    There is a new FilterBuilder attribute sortFields.
    Unfortunately it is not working as expected while defining subclause. Even if FilterBuilder has sortFields set to false, then field picker on subclase list fields alphabetically.
    Please see minimal test case below and attached screen shots.
    MichalG

    1. SmartClient Version: v8.3p_2013-02-14/LGPL Development Only (built 2013-02-14)

    2. Firefox 3.6.17

    3. -

    4. -

    5. -

    6.
    Code:
    package pl.com.tech4.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.core.client.GWT;
    import com.google.gwt.user.client.DOM;
    import com.smartgwt.client.core.KeyIdentifier;
    import com.smartgwt.client.data.DataSource;
    import com.smartgwt.client.data.fields.DataSourceTextField;
    import com.smartgwt.client.util.KeyCallback;
    import com.smartgwt.client.util.Page;
    import com.smartgwt.client.util.SC;
    import com.smartgwt.client.widgets.form.FilterBuilder;
    
    public class MainEntryPoint implements EntryPoint {
       
        public void onModuleLoad() {
    
            DOM.getElementById("loadingPicture").removeFromParent();
     
            if (!GWT.isScript()) {
                KeyIdentifier debugKey = new KeyIdentifier();
                debugKey.setCtrlKey(true);
                debugKey.setKeyName("Y");
                Page.registerKey(debugKey, new KeyCallback() {
    
                    public void execute(String keyName) {
                        SC.showConsole();
                    }
                });
            }
           
            layout();
        }
       
        private void layout() {
           
            DataSource ds = new DataSource();
            DataSourceTextField fieldC = new DataSourceTextField("fieldC");
            DataSourceTextField fieldB = new DataSourceTextField("fieldB");
            DataSourceTextField fieldA = new DataSourceTextField("fieldA");
            ds.setFields(fieldC, fieldB, fieldA);
           
            FilterBuilder fb = new FilterBuilder();
            fb.setDataSource(ds);
            fb.setSortFields(false);
           
            fb.draw();
        }
    }
    Attached Files

    #2
    Thanks for the report - we've addressed this in 3.1p and 4.0d - please retest with a nightly build of February 18 or later

    Comment


      #3
      Indeed fixed in SmartClient Version: v8.3p_2013-02-18/LGPL Development Only (built 2013-02-18)
      Thanks,
      MichalG

      Comment

      Working...
      X