Announcement

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

    Advanced Field Picker's 'Available Fields' filter does not accept user input

    Using the ListGrid's advanced field picker, as in

    Code:
    	public void onModuleLoad() {
    
    		ListGrid grid = new MyGrid();
    		grid.setDataSource(DataSource.get("OrderItem"));
    		grid.setUseAllDataSourceFields(true);
    		grid.setAutoFetchData(true);
    		ListGridField detail = new ListGridField("QUANTITY");
    		detail.setAttribute("detail", true);
    		grid.setFields(detail);
    		
    		
    		VLayout layout = new VLayout();
    		layout.setWidth100();
    		layout.setHeight100();
    		
    		layout.addMember(grid);
    		
    		layout.draw();
    
    		if (!GWT.isScript()) {
    			KeyIdentifier debugKey = new KeyIdentifier();
    			debugKey.setCtrlKey(true);
    			debugKey.setAltKey(true);
    			debugKey.setKeyName("D");
    			Page.registerKey(debugKey, new KeyCallback() {
    				public void execute(String keyName) {
    					SC.showConsole();
    				}
    			});
    		}
    	}
    	
    	class MyGrid extends ListGrid {
    		public MyGrid() {
    			super();
    			setAttribute("useAdvancedFieldPicker", true, false);
    			setAttribute("advancedFieldPickerThreshold", 1, false);
    		}
    	}
    and it all works as advertised, except that the 'Available Fields' filter does not accept user input. This with a 3.1d 10/4 nightly, tested on Firefox 15 and IE9. Log output follows:

    Code:
    14:46:22.248:INFO:Log:initialized
    14:46:24.210:WARN:Log:New Class ID: 'DataView' collides with ID of existing object with value 'function DataView() {
        [native code]
    }'.  Existing object will be replaced.
    This conflict would be avoided by disabling ISC Simple Names mode.  See documentation for further information.
    14:46:26.706:INFO:Log:isc.Page is loaded
    Bug?

    #2
    So... someone will look at it then?

    Comment


      #3
      We have a developer looking at this. We'll update when we have more information.

      Regards
      Isomorphic Software

      Comment


        #4
        Using the SGWT LGPL build from 11-12-2012 (http://www.smartclient.com/builds/Sm...rtgwt-3.1d.zip), I tried your sample code and found everything working perfectly. Specifically, I can open the Advanced Field Picker, and type text into either filter, including the "Available Fields" on the left, and it correctly filters the fields.

        I did change the line:
        Code:
        grid.setDataSource(DataSource.get("OrderItem"));
        from your code sample to :
        Code:
        grid.setDataSource(OrderItemLocalDS.getInstance());
        which is how other showcase samples access it, but I don't think that slight change would have any affect on the Advanced Field Picker.

        So, I'm guessing the fix is to simply download the latest ZIP.

        Comment


          #5
          Well, there you go. Confirmed that it does work in the latest nightly. Apologies for not having checked it myself.

          Comment

          Working...
          X