1. #31
    Sencha Premium Member seek's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    112
    Vote Rating
    1
    seek is on a distinguished road

      0  

    Default


    First thing I've done: customizing for displayfield and valuefield in enum combobox.
    Next:
    - try to clear the "<PRE> </PRE>" text when filter are manually cleared
    - fix problem with number range filtering

  2. #32
    Ext User
    Join Date
    Dec 2009
    Posts
    23
    Vote Rating
    0
    asbestos girl is on a distinguished road

      0  

    Default


    Hi dandfra,
    I am using the same sort of filters UI dialog as you have in http://cherryonext.googlecode.com/sv...llTogether.htm
    This is great, but I was wondering if you have any plans to support graphical representation of complex composite filters with mixed ORs and ANDs? This demo only lets me set all operators to AND or OR, but not a mixture. Thanks in advance.

  3. #33
    Sencha Premium Member seek's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    112
    Vote Rating
    1
    seek is on a distinguished road

      0  

    Default


    Has anyone succesfully adapted this plugin to 3.2.1?
    I'm having some problems with manually clear operator and removeAllFilters() function...

  4. #34
    Sencha Premium Member seek's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    112
    Vote Rating
    1
    seek is on a distinguished road

      0  

    Thumbs up


    Quote Originally Posted by dandfra View Post
    Cool! We use Cherry with dwr (I have a backand for cherry using hibernate criteria but no one seems to care so far...) but only to send filters from the browser to the server...
    Let me know what you did, it sound usefull
    I use it DWR too, but the Java backend developer want to write a criterion builder by himself , so I must override some stuff of COE in order to send filter from browser to server....

    Now I have a little question....how to make a "user invisible" dynamic filter?
    I need it for master-detail grids, where COE is enabled only for details.

    Thanks in advance

  5. #35
    Sencha User
    Join Date
    Apr 2010
    Location
    Bonn, Germany
    Posts
    3
    Vote Rating
    0
    woodstocktm is on a distinguished road

      0  

    Question Extending to Dwr Remote Filtering

    Extending to Dwr Remote Filtering


    Quote Originally Posted by dandfra View Post
    Cool! We use Cherry with dwr (I have a backand for cherry using hibernate criteria but no one seems to care so far...) but only to send filters from the browser to the server...
    Let me know what you did, it sound usefull
    Hi Dandfra!

    Now you've found someone who cares ;-)
    We use ExtJS3 and CherryOnExt with DWR, too. Now we want to extend filter functionality from localFilterResolver to a remote one. Which would be be best approach? We were thinking of something like
    PHP Code:
    Ext.ux.netbox.core.DwrRemoteFilterResolver = function(filterModelmapping) {
        
    this.mapping=null;
        if(
    mapping==undefined){
            
    this.mapping={
                
    NUMBER_EQUAL: {fnthis.filterNumberEqualscopethis}
                
    //...other filter functions
            
    };
        }
        
    this.filterModel=filterModel;
    };

    Ext.ux.netbox.core.DwrRemoteFilterResolver.prototype = {
        
    filters: [],
        
    apply: function(store){
            
    //standard local filtering with local function applied to each record of a store
            //store.filterBy(this.filter, this);
            
            //create a DWR Request using this.filters
            //with store.load() ??? 
        
    },
        
    filterNumberEqual: function(recordvalue,column){
            var 
    filter = {
                
    fieldNamecolumn,
                
    operator'Equals',
                
    operands: [value]
            };
            
    filters.push(filter);
        }
        
    //...other filter functions
    }; 
    This is just a code fragment to explain the way we plan to go... what do you think about this? Did you prefer another approach? Or is there an easier or more elegant way doing this? Remember we don't have access to backend methods directly!

    Best regards,

    Woodstock

  6. #36
    Ext User
    Join Date
    May 2008
    Posts
    59
    Vote Rating
    0
    gthe is on a distinguished road

      0  

    Default


    Quote Originally Posted by seek View Post
    First thing I've done: customizing for displayfield and valuefield in enum combobox.
    Next:
    - try to clear the "<PRE> </PRE>" text when filter are manually cleared
    - fix problem with number range filtering

    Any progress for this ?

  7. #37
    Sencha Premium Member seek's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    112
    Vote Rating
    1
    seek is on a distinguished road

      0  

    Exclamation


    Quote Originally Posted by gthe View Post
    Any progress for this ?
    Yes, but I have heavy problems with
    PHP Code:
    addFormField: function(formFieldeditorComponent){
     
    editorComponent.add(formField);
     
    editorComponent.doLayout();
     }, 
    when changing operator filter in combobox...
    The error is: uncaught exception: Element.alignToXY with an element that doesn't exist

    I REALLY APPRECIATE ANY KIND OF HELP...

    gthe, I solved PRE problem with:
    Code:
    //var operators = [["", "<PRE> </PRE>"]];
    var operators = [["", ""]];
    .
    .
    .
    .
    //tpl: '<tpl for="."><div class="x-combo-list-item">{[values.operatorLabel=="<PRE> </PRE>" ? values.operatorLabel : values.operatorLabel.escHtml()]}</div></tpl>'
      tpl: '<tpl for="."><div class="x-combo-list-item">{[values.operatorLabel.escHtml()]}&nbsp;</div></tpl>'

  8. #38
    Touch Premium Member
    Join Date
    Feb 2008
    Posts
    206
    Vote Rating
    0
    BlueCamel is on a distinguished road

      0  

    Default


    Has anyone built the this on Linux using JSBuilder2? I tried to build it and received the following:

    Code:
    java -jar JSBuilder2.jar --projectFile cherryonext-read-only/cherryonext.jsb --homeDir build/cherryonext
    
    A JSONObject text must begin with '{' at character 1
    Failed to open project file.
    java.lang.NullPointerException
    	at com.extjs.JSBuilder2.createTempHeaderFile(JSBuilder2.java:141)
    	at com.extjs.JSBuilder2.main(JSBuilder2.java:38)
    Failed to create temporary header file.
    null
    Failed to find 'pkgs' configuration.
    null
    Failed to create deploy directory.
    null
    Failed to create targets with fileIncludes.
    java.lang.NullPointerException
    	at com.extjs.JSBuilder2.createTargetsWithDeps(JSBuilder2.java:221)
    	at com.extjs.JSBuilder2.main(JSBuilder2.java:42)
    Failed to create target with package dependencies.
    java.lang.NullPointerException
    	at com.extjs.JSBuilder2.copyResources(JSBuilder2.java:379)
    	at com.extjs.JSBuilder2.main(JSBuilder2.java:43)
    Exception in thread "main" java.lang.NullPointerException
    	at com.extjs.FileHelper.listFiles(FileHelper.java:100)
    	at com.extjs.JSBuilder2.writeHeadersToTargets(JSBuilder2.java:276)
    	at com.extjs.JSBuilder2.main(JSBuilder2.java:44)

  9. #39
    Sencha User
    Join Date
    Nov 2007
    Posts
    31
    Vote Rating
    0
    zacware is on a distinguished road

      0  

    Default Bug with 3.3.1 Help

    Bug with 3.3.1 Help


    Found this great library via this thread. Got the .320 branch rev 231 and tried updating the ext code includes to 3.3.1 and now I get this error

    Ext.ux.netbox.core.LocalStoreFilterResolver is not a constructor in the alltogether.htm demo file

    Any suggestions? Thanks.

  10. #40
    Sencha User
    Join Date
    Feb 2008
    Posts
    7
    Vote Rating
    0
    alexmario is on a distinguished road

      0  

    Default


    Hello,
    if you look into the svn now there is a new project file: cherryonext.jsb2

    This file should work with the JSBuilder 2.

    Mario