Re: Summing fields

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10829
interpreted = N
texte = >>>> [math]total=[FoundItems][field]+[/FoundItems]0[/math] >> >>>Apparently both methods work cause I see the 's. The second >>>displayed the total as I wanted. How would I get the total to display >>>using the first method? I like the first method since I use the same >>>total several times. Would avoid having to calculate itseveral times >>>andkeep the templates shorter. >> >>Here's how you show it in several places on the same page: >> >>[math]total=[FoundItems][field]+[/FoundItems]0[/math] <-calcs & displays total >> >>[math]total[/math] <-displays same value as before > >Grant, > >Is there any way to do something like this with other variables, such as a >variable that occurs 'outside' of a math context? > >Sincerely, >KenKen, I have not tried this yet, but was going to soon
then do the aboveor
I saw this used elsewhere, and can't find notes, but since I can declare a value in a form in webcat and drag it to another .tmpl ie: in a append... &something=[form.something]... And I think I also have a java script snipit somewhere that used a similar create a variable in a form and used it elsewhere.Now I could be 100% all wet on this one. Logic seems to tell me it might work. Don't shoot me if I am totally illlogical on this, talk to Spock :)=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: Summing fields in a search/founditems context?? (Jason Tyler 2000)
  2. Summing fields in a search/founditems context?? (Robert McPeak 2000)
  3. Re: Summing Fields (Martin Gertz Bech 1998)
  4. Re: Summing Fields (Christer Olsson 1998)
  5. Summing Fields (Wayne Morishige 1998)
  6. Re: Summing fields (grichter@panavise.com (Gary Richter) 1997)
  7. Re: Summing fields (Grant Hulbert 1997)
  8. Re: Summing fields (Kenneth Grome 1997)
  9. Re: Summing fields (grichter@panavise.com (Gary Richter) 1997)
  10. Re: Summing fields (Grant Hulbert 1997)
  11. Re: Summing fields (Kenneth Grome 1997)
  12. Re: Summing fields (Britt T. 1997)
  13. Re: Summing fields (Grant Hulbert 1997)
  14. Re: Summing fields (Kenneth Grome 1997)
  15. Re: Summing fields (Grant Hulbert 1997)
  16. Re: Summing fields (Dean Smith 1997)
  17. Re: Summing fields (Dean Smith 1997)
  18. Re: Summing fields (Grant Hulbert 1997)
  19. Summing fields (Dean Smith 1997)
>>>> [math]total=[founditems][field]+[/FoundItems]0[/math] >> >>>Apparently both methods work cause I see the 's. The second >>>displayed the total as I wanted. How would I get the total to display >>>using the first method? I like the first method since I use the same >>>total several times. Would avoid having to calculate itseveral times >>>andkeep the templates shorter. >> >>Here's how you show it in several places on the same page: >> >>[math]total=[founditems][field]+[/FoundItems]0[/math] <-calcs & displays total >> >>[math]total[/math] <-displays same value as before > >Grant, > >Is there any way to do something like this with other variables, such as a >variable that occurs 'outside' of a math context? > >Sincerely, >KenKen, I have not tried this yet, but was going to soon
then do the aboveor
[math]total=[founditems].....
I saw this used elsewhere, and can't find notes, but since I can declare a value in a form in webcat and drag it to another .tmpl ie: in a append... &something=[form.something]... And I think I also have a java script snipit somewhere that used a similar create a variable in a form and used it elsewhere.Now I could be 100% all wet on this one. Logic seems to tell me it might work. Don't shoot me if I am totally illlogical on this, talk to Spock :)=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

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:

Help! WebCat install problems... (2000) Do the [date] thing... (2001) WebCatalog can't find database (1997) Generating unique SKU from [cart] - Still Stumped... (1997) Resume Catalog ? (1997) [WebDNA] set HTTP-Status Code from webdna (2016) Transferring [cart] to Database (1997) Was 5.0 Pricing, now Sandbox versus Website and ruminating (2003) ssh shutdown (2005) Sorting Numbers (1997) Error -108 (1997) WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997) special commerce fields (1997) converchars in sendmail context.... (2004) Roundup function? (1997) WebCatalog [FoundItems] Problem - AGAIN - (1997) RE: [WebDNA] List Files question (2009) Re[2]: When do we get to request new features? (1999) Calculating Total QTY (1998) [WebDNA] [AddFields] Restrictions (2008)