PDA

View Full Version : Cherry On Ext 3.0.0



asbestos girl
9 Feb 2010, 3:11 AM
I have started using this great ux on Ext 3.0.0. Hence starting a new thread under the 3.0 folder - continuation from http://www.extjs.com/forum/showthread.php?t=26730&page=22

Look at the above link if you currently have issues using this on Ext 3.

After following the instructions for temporary update from the above link, at the moment there is still an issue with using the date range filter, which dandfra told me they are still working at. I have worked around this issue by temporarily commenting the date range option out in cherryonext.js:


//this.addOperator(new Ext.ux.netbox.date.DateRangeOperator(format));which is fine for me, as the user can still achieve the same filtering effect by applying one <= and one >= date filter

sergey.s
10 Feb 2010, 2:52 AM
at the moment there is still an issue with using the date range filter
patch for 0.3.2 branch (actually I posted it about a year ago @ 2.x theme)

asbestos girl
11 Feb 2010, 3:40 AM
Sergey, thanks, but it does not seem to fix it.

On Firefox the Range Menu still does not appear at all and i get an error:

this.el is undefined, line 11 ext-all.js

On IE the menu now does appear, but its width is not right, so the fields do not fit in it and after writing into the fields, the values are not updated into the Value field.

gthe
12 Feb 2010, 3:46 AM
Here is my file that I successfully use with version 3.0.0

asbestos girl
12 Feb 2010, 4:09 AM
Hi gthe,
thanks, but with this file, I am getting exactly the same result as with the patch sergey has posted.

sergey.s
14 Feb 2010, 11:07 PM
asbestos girl, what's your ExtJS version and browser?

asbestos girl
15 Feb 2010, 3:02 AM
Hi sergey,

Ext version: 3.0.0
Browser 1: Firefox 3.5.7
Browser 2: IE 7

sergey.s
15 Feb 2010, 6:05 AM
asbestos girl, try with 3.0.3
Btw check the latest svn revision - alexmario74 completely refactored RangeMenu and RangeField.

asbestos girl
15 Feb 2010, 6:18 AM
Okay I might try with 3.0.3 later when I have time to upgrade, but for now it needs to stay at 3.0.0
I have also got the latest cherry update from svn and it still has issues on IE7, I have sent details to dandfra.

asbestos girl
22 Feb 2010, 2:41 AM
Hi,
I have just been told by dandfra that branch 0.3.2.0 has been updated again with latest fixes. I have updated from there and this has fixed the date range issue fully.
Thanks guys!

E_lexy
5 Mar 2010, 7:45 AM
any progress? I am using 3.1.1 in my project...

asbestos girl
5 Mar 2010, 7:54 AM
Does the latest 0.3.2.0 branch not work with 3.1.1?

smartree
17 Mar 2010, 11:19 PM
where can find V0.3.2.0?
http://code.google.com/p/cherryonext/
On the site? I haven't found the file, and I just svn checkout, still、haven't build it.

asbestos girl
18 Mar 2010, 1:30 AM
http://cherryonext.googlecode.com/svn/branches/0.3.2.0

dandfra
19 Mar 2010, 6:45 AM
Hi, just to let you know that now on Google Code trunk is moved to support Ext 3.x.
Not all cherry is ported to Ext 3.x. (We are porting as needed in our projects...)
What should work:
Dynamic Filter Manager
Quick Filter
Input Mask

Ciao

PS: We don't have much time to support Cherry ATM, even if we are using it quite extensively...
If someone wants to help, send a request and I'll give you write access to the repository...

woodstocktm
8 Apr 2010, 7:20 AM
Thanks for your efforts on this great add-on. I am using it for the first time and could not find any german translation. As a small contribution look at attached file and feel free to use it or maybe save it in the svn...

Best regards,

Thorsten

dandfra
8 Apr 2010, 7:32 AM
First of all thanks for your contribution :)

Before adding to the repository, is it ok for you to license it using LGPL v2 or later? (If yes a copy of your answer with license information will be added in the repository).

Ciao and thanks again

woodstocktm
8 Apr 2010, 7:56 AM
Sure it's ok!

So it is ok for me to license the above mentioned small contribution using LGPL v2 or later, right? I hope that's it ;)

Cheers,

Thorsten

dandfra
9 Apr 2010, 12:23 AM
Thanks again, I added it to the repo!
Ciao :)

lnkbing
16 Apr 2010, 10:49 PM
but It doesn't work in my files, will you send me your sourcess

dandfra
19 Apr 2010, 12:18 AM
I don't understand your request... What is the problem?
If you are asking for the Cherry sourcers, they can be found here http://cherryonext.googlecode.com/svn/trunk/ (use subversion to checkout the code)
To build a package starting from the sources follow the instruction that youca find here:
http://code.google.com/p/cherryonext/wiki/BuildHowTo

Ciao

lnkbing
20 Apr 2010, 7:05 PM
20034

lnkbing
20 Apr 2010, 7:34 PM
20036

dandfra
21 Apr 2010, 12:28 AM
If I understand right from the screenshot and the source, your problem is this one:
1) open the file demo.htm in a browser
2) Click Filters....
3) select Last Updated column

What should happen:
the period operation is pre-selected and a combo witj a list of available values (last day, last week) is shown
What happens:
javascript error

Is this right? (I arrived to this with a lot of deduction, so I'm not so sure)

If this is right in your file demo.htm

<script type="text/javascript" src="../src/netbox/core/AvailableValuesEditor.js"></script>
is missing after the FilterEditor.js include

PS1: What is the reason you are using the single javascripts and not the complete one built as explained here (http://code.google.com/p/cherryonext/wiki/BuildHowTo)?

PS2: Next time please explain better the problem, it's difficult to help without knowing exactly the problem

Ciao

lnkbing
21 Apr 2010, 5:38 AM
Oh Thank you for your help!

flipthefrog
21 Apr 2010, 10:23 AM
To build a package starting from the sources follow the instruction that youca find here:
http://code.google.com/p/cherryonext/wiki/BuildHowTo

Ciao

Yeah, well...

NB: The build scripts only work on Windows since they use JSBuilder. Thats always a great start.


Install JSBuilder in "C:\Program Files\JS Builder" (download from http://www.jackslocum.com/build/download.php?dl=jsb) 404 Not found

Maybe if you updated the downloadable build (like revision 226, the one that works with ext31) more people would try this out

seek
20 Jun 2010, 11:23 PM
Hello!
Thanks for the great plugin, I want use it in my main project!
Only an answer, what is the fast way to override the filter string composition?
Gran lavoro!

Ciao

dandfra
21 Jun 2010, 11:17 PM
Hello!
Thanks for the great plugin, I want use it in my main project!
Only an answer, what is the fast way to override the filter string composition?
Gran lavoro!

Ciao

What do you want to do exactlly? Please explain better...
I think you should give a look to FieldManager and Field...

seek
21 Jun 2010, 11:32 PM
Thanks dandfra, I've already find the solution,I use an override in this function:

Ext.override(Ext.ux.netbox.core.FilterModel,{
getFilterObj:...

Now, my main problem is about using the DWR with your filter plugin, and I need the mapping property in the fields.
Maybe i must override this function?


Ext.override(Ext.ux.netbox.core.FieldManager, {
createFieldFromCfg: function(fieldCfg){

and passing the parameters to these functions :-?


Ext.ux.netbox.string.StringField();
Ext.ux.netbox.string.EnumField();
Ext.ux.netbox.number.NumberField();
Ext.ux.netbox.date.DateField();

My goal is to use the same field configuration for grid and filter plugin :-)

Thanks again
S.

dandfra
22 Jun 2010, 12:06 AM
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 :)

seek
24 Jun 2010, 2:35 AM
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

asbestos girl
24 Jun 2010, 5:49 AM
Hi dandfra,
I am using the same sort of filters UI dialog as you have in http://cherryonext.googlecode.com/svn/demos/demo/allTogether.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.

seek
25 Jun 2010, 12:29 AM
Has anyone succesfully adapted this plugin to 3.2.1?
I'm having some problems with manually clear operator and removeAllFilters() function...

seek
2 Jul 2010, 12:49 AM
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

woodstocktm
17 Aug 2010, 2:32 AM
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


Ext.ux.netbox.core.DwrRemoteFilterResolver = function(filterModel, mapping) {
this.mapping=null;
if(mapping==undefined){
this.mapping={
NUMBER_EQUAL: {fn: this.filterNumberEqual, scope: this}
//...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(record, value,column){
var filter = {
fieldName: column,
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

gthe
18 Aug 2010, 7:19 AM
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 ?

seek
1 Sep 2010, 12:17 AM
Any progress for this ?

Yes, but I have heavy problems with


addFormField: function(formField, editorComponent){
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:


//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>'

BlueCamel
23 Dec 2010, 11:57 AM
Has anyone built the this on Linux using JSBuilder2? I tried to build it and received the following:


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)

zacware
24 Jan 2011, 9:59 AM
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.

alexmario
21 Jul 2011, 9:18 AM
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

alexmario
28 Jul 2011, 11:08 PM
Hello all,

recently I posted on the main forum the last release of Cherry, but maybe many follow just this thread, so sorry for who already read this.

15 June 2011: change the Cherry on Ext license

We released a new version of Cherry on Ext just for change the license from LGPL v3 to New BSD.

This change is in accordance with the Ext JS license of course, and will give to the users of our library more flexibility and freedom.

And a new project file for those who want to build using JSBuilder 2.

http://code.google.com/p/cherryonext/

Mario

scottmartin
4 Aug 2011, 10:39 AM
Based on the news on your site, this is pretty much a dead project for ExtJS?

Regards,
Scott.

daiei27
6 Aug 2011, 12:19 AM
Based on the news on your site, this is pretty much a dead project for ExtJS?

Regards,
Scott.
Not to mention I wonder what it really offers over ExtJS 4... with the GridFilter plugin if stock ExtJS 4 doesn't have it...

scottmartin
6 Aug 2011, 8:21 AM
I do like their QBE type dialog for searching. The grid filter is fine if you like to click your mouse a lot.

Regards,
Scott.

alexmario
8 Aug 2011, 11:30 PM
Based on the news on your site, this is pretty much a dead project for ExtJS?

Regards,
Scott.

Hello,
maybe yes for many reasons.

The first is we don't have time to follow cherry on ext as it need.
This is because our company is not interested cherry on ext evolution.

Then half of the team leave the company.

There is ExtJS 4.

But I think for who use ExtJS 2 or 3, and still like cherry I will try to support as best, and hope someone else could help.

alexmario
9 Aug 2011, 12:28 AM
Not to mention I wonder what it really offers over ExtJS 4... with the GridFilter plugin if stock ExtJS 4 doesn't have it...

I don't know about ExtJS 4.
Actually I just stopped on version 3.

alexmario
4 Jul 2012, 12:03 AM
Hello all,

thanks to Roberto Duò we have a version on SVN repos that work with ExtJS 4.0.

http://code.google.com/p/cherryonext/source/checkout

The team don't have so much time to work on this project, so there isn't a new version, just the code you could build with jsbuilder 2.

Hope this could help CherryOnExt users.