Re: Calculated fields

2006-06-08 Thread Antonio Gallardo
Hi Simone, I didn't read this mail until now, it was somehow hidden. comments below... Simone Gianni escribió: Hi Antonio, thanks a lot :) Just a few notes : - What's the locale of cocoon.zones.apache.org ? Field formatting currency displays a strange symbol Yes, I noted the same error in

Re: Calculated fields

2006-05-26 Thread Simone Gianni
Hi Antonio, thanks a lot :) Just a few notes : - What's the locale of cocoon.zones.apache.org ? Field formatting currency displays a strange symbol - Please note that VAT calculation is somewhat floppy due to floating point division in xreporter expressions, which is still an open issue

Calculated fields

2006-05-25 Thread Simone Gianni
Hi all, I've finished my (long) work on calculated fields. I think I managed to fulfill main goals : - Only xreporter expressions and javascript are used - The grammar is the one Antonio proposed, with really minimal variations - All calculations are event based, as Sylvain explained

Re: Calculated fields

2006-05-25 Thread Antonio Gallardo
Hi Simone, Simone Gianni escribió: snip_of_great_stuff/ Please let me know what you think about it! I ran the demo [1] and it is super ultra great! You need to be in the cocoon hero plate! ;-) Best Regards, Antonio Gallardo. [1]

Re: Calculated fields

2006-04-11 Thread Simone Gianni
it from a wider point of view, since it's a feature I'm missing not only in calculated fields but in cocoon forms in general. If we agree in trying this roadmap, i will produce something for tomorrow. We can then fine tune it or drop it if we think it's not a good idea. WDYT? Simone

Re: Calculated fields

2006-04-10 Thread hepabolu
, Field3: each have a range 0..3 TotalScore = if (empty(Field1) || empty(Field2) || empty(Field3)) { sum(Field1, Field2, Field3) } else { score undefined } So two additions: - use calculated fields for all widgets, rather than just repeaters - allow a more flexible way of expressing

Re: Calculated fields

2006-04-10 Thread Simone Gianni
Hi Antonio, fd:value eval=sum(articles.items)/ ... fd:value eval=sum(articles.items*articles.price)/ ... fd:value eval=sum(articles.subtotal)/ This is a very nice syntax!! However this way we are binding the system to a language. This creates a number of problems : - What language is it? We

Re: Calculated fields

2006-04-10 Thread Simone Gianni
of the fields are set to a value. Example: Field1, Field2, Field3: each have a range 0..3 TotalScore = if (empty(Field1) || empty(Field2) || empty(Field3)) { sum(Field1, Field2, Field3) } else { score undefined } So two additions: - use calculated fields for all widgets, rather than just repeaters

Re: Calculated fields

2006-04-10 Thread Sylvain Wallez
Simone Gianni wrote: Hi all, what about calculated fields? In a cocoon form I have a repeater, in the repeater there are some numeric fields, and i need to show the sum of values in these fields at the bottom of the page. This can be done with fd:value-changed and some javascript or custom

Re: Calculated fields

2006-04-10 Thread Simone Gianni
es it has finished parsing values (and validating them) : ... check if the recalculate flag is set ... in that case call the algorithm ... clear the recalculate flag - Also, since an algorithm may also need values from other calculated fields ... in getValue(), if the recalculate flag is set, call the algo

Re: Calculated fields

2006-04-10 Thread Joerg Heinicke
On 10.04.2006 14:38, Simone Gianni wrote: Yikes! Heavy FS smell! FS? Fun Stuff? Free Style? Fiancial Service? :) Flexibility Syndrome aka Featuritis. Jörg

Re: Calculated fields

2006-04-10 Thread Sylvain Wallez
(and validating them) : ... check if the recalculate flag is set ... in that case call the algorithm ... clear the recalculate flag - Also, since an algorithm may also need values from other calculated fields ... in getValue(), if the recalculate flag is set, call the algorithm. ... also use

Re: Calculated fields

2006-04-10 Thread Antonio Gallardo
relatively useless with current great AJAX support. I think it was written in the Jira issue because at that time Ajax was still far. AFAIK, calculated fields main task is inform the user. In other way, if we don't need to inform the webapp user about the subtotal, taxes amount in a currency and so

Calculated fields

2006-04-09 Thread Simone Gianni
Hi all, what about calculated fields? In a cocoon form I have a repeater, in the repeater there are some numeric fields, and i need to show the sum of values in these fields at the bottom of the page. This can be done with fd:value-changed and some javascript or custom classes, but actually

Re: Calculated fields

2006-04-09 Thread Antonio Gallardo
Hi Simone, Thanks for taking care of this old but very important issue. Please see comment below... Simone Gianni escribió: Hi all, what about calculated fields? In a cocoon form I have a repeater, in the repeater there are some numeric fields, and i need to show the sum of values

DO NOT REPLY [Bug 25298] - [Roadmap] Calculated fields

2005-10-10 Thread bugzilla
/show_bug.cgi?id=25298 [EMAIL PROTECTED] changed: What|Removed |Added Summary|Calculated fields |[Roadmap] Calculated fields -- Configure bugmail: http

DO NOT REPLY [Bug 25298] - Calculated fields

2004-02-11 Thread bugzilla
/show_bug.cgi?id=25298 Calculated fields --- Additional Comments From [EMAIL PROTECTED] 2004-02-12 01:54 --- At what level we will implement it? At server side or at client side? AFAIK, calculated fields are more important in client side to show results of some calculations to users

DO NOT REPLY [Bug 25298] New: - Calculated fields

2003-12-08 Thread bugzilla
/show_bug.cgi?id=25298 Calculated fields Summary: Calculated fields Product: Cocoon 2 Version: Current CVS 2.1 Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component