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:

    
  1. Re: Problem with summ=T & [sum fieldname=] (Jeroen de Wijn 2001)
  2. Problem with summ=T & [sum fieldname=] (Yomo Guiamo 2001)
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:

OT : Virus (2000) b12 cannot limit records returned and more. (1997) I give up!! (1997) [subtotal] and others (1997) [WebDNA] AJAX module (2012) Forumulas.db & Variables (2002) WebDNA Solutions ... sorry! (1997) Here's an example of an applet in a tpl (1997) WebCatalog can't find database (1997) displaying New products (using [date]) (1997) random sorting broken (was Re[2]: php vs WebCatalog) (2000) Sku numbers (1997) HTML encoding in URLs (1997) [protect] (2000) No luck with taxes (1997) MacAuthorize and WebMerchant (1997) WebCat2 beta 11 - new prefs ... (1997) supressing math results (1997) Still can't upgrade users.db to 2.1.1 (1998) Search Question (2003)