Re: Problem with summ=T & [sum fieldname=]
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38949
interpreted = N
texte = Pretty quick'ndirty o display the values of price for all dates:[search db=x.db&neDatedatarq=01-01-1900&rank=off&Datesumm=t][founditems] [math show=f]ThisPrice=0[/math] [search db=x.db&eqDatedatarq=[Date]&rank=off] [founditems] [text]ThisPrice=[math][ThisPrice]+[Price][/math][/text] [/founditems] [/search] The date is [Date], and the price is [ThisPrice].[/founditems][/search]At 10:51 AM 9/28/01, you wrote:>Hi,>>If I use fieldnamesumm=T in my search-query and then want to>calculate the total of the found records with [sum myfield],>the sum of only the first record is shown. What I want is to>calculate the sum of all found records, but show only 1>record if the dates are the same (datesumm=T). Unfortunately>webcat doesn't do that. Is there some way with which I can>calucalte the CORRECT sum of all found records, but display>only 1 record if some other fieldname value is the same.>>This what I mean:>Instead of>Date Price>25-08-2001 1000>25-08-2001 2000>>should be>Date price>25-08-2001 3000>>Thanks in advance,>Yomo Guiamo>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list
.>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Pretty quick'ndirty o display the values of price for all dates:[search db=x.db&neDatedatarq=01-01-1900&rank=off&Datesumm=t][founditems] [math show=f]ThisPrice=0[/math] [search db=x.db&eqDatedatarq=[date]&rank=off] [founditems] [text]ThisPrice=[math][ThisPrice]+[Price][/math][/text] [/founditems] [/search] The date is [date], and the price is [ThisPrice].[/founditems][/search]At 10:51 AM 9/28/01, you wrote:>Hi,>>If I use fieldnamesumm=T in my search-query and then want to>calculate the total of the found records with [sum myfield],>the sum of only the first record is shown. What I want is to>calculate the sum of all found records, but show only 1>record if the dates are the same (datesumm=T). Unfortunately>webcat doesn't do that. Is there some way with which I can>calucalte the CORRECT sum of all found records, but display>only 1 record if some other fieldname value is the same.>>This what I mean:>Instead of>Date Price>25-08-2001 1000>25-08-2001 2000>>should be>Date price>25-08-2001 3000>>Thanks in advance,>Yomo Guiamo>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Jeroen de Wijn
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[WebDNA] WebDNA vs. PHP code examples (2008)
I got caught! (2003)
Beta List (1998)
WebCat2b12 - nesting [tags] (1997)
Frames and WebCat (1997)
Plugin or CGI or both (1997)
Alternating colors (1997)
WebDNA - fun to compare (2005)
WebDNA CAPTCHA (2008)
Sku numbers (1997)
b12 cannot limit records returned and more. (1997)
PCS Frames (1997)
[click][/click] (1999)
[isfile] ? (1997)
Reenter store and find cart (2003)
How do you hide [math]stuff[/math] (1997)
Showing specific [cart] contents (1998)
Test (2004)
Re:multiple digests, please stop (1997)
Multiple catalog databases and showcart (1997)