Re: Cant get my own subtotal
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36571
interpreted = N
texte = Nitai:Not sure if this is what you're looking for. But this is the way I getsubtotals:In this particular example, I'm getting a subtotal for eachorganization([org]) that occurs in a registration file. I could just aseasily be subtotaling a field by adding the field to runningsubtotalinstead of 1.[search db=../someDB.db&neOrgdata=find_all&orgSumm=T&orgsort=1][foundItems][search db=../someDB.db&eqOrgdata=[org]] [math show=F]runningsubtotal=0[/math] [foundItems] [math show=F]runningsubtotal=runningsubtotal+1[/math] [/foundItems][math]runningsubtotal[/math][/search][/foundItems][/search]At 02:42 PM 6/22/01, you wrote:>Sorry need to rephrase the question.>>I need to get some lead to HOW this is to be done.>>I need my own subtotal math because I am using some discount on each item>and the build-in subtotal adds everything up without subtracting the>discounts.>>Sincerely,>Nitai Aventaggiato>>> Just a thought... are you perhaps using one of the reserved words and>> confusing WebCat?>> >>> Hi all,>>> >>> Sleepless night, so please be nice:-)>>> >>> I am trying to get my own subtotal to work. I have different currencieswith>>> different taxes. Anyhow, all I need to know how I can create my own>>> subtotal (same for grandtotal).>>> >>> I have tried to write each lineitem to a temp.db and sum it all up, butcan>>> get it to work.>>> >>> I would really appreciate any comment or snippets of code. Thank you all.>> >> ------------------------------------------------------------->> 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/>>-- >We make tools to energize your business>Content Management & eBusiness Systems>>ComputerOil GmbH http://computeroil.com>Hauptstrasse 12 info@computeroil.com>8252 Schlatt/Switzerland>Tel: +41 (0)52 654 15 55>>>------------------------------------------------------------->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:
Nitai:Not sure if this is what you're looking for. But this is the way I getsubtotals:In this particular example, I'm getting a subtotal for eachorganization([org]) that occurs in a registration file. I could just aseasily be subtotaling a field by adding the field to runningsubtotalinstead of 1.[search db=../someDB.db&neOrgdata=find_all&orgSumm=T&orgsort=1][founditems][search db=../someDB.db&eqOrgdata=[org]] [math show=F]runningsubtotal=0[/math] [founditems] [math show=F]runningsubtotal=runningsubtotal+1[/math] [/foundItems][math]runningsubtotal[/math][/search][/foundItems][/search]At 02:42 PM 6/22/01, you wrote:>Sorry need to rephrase the question.>>I need to get some lead to HOW this is to be done.>>I need my own subtotal math because I am using some discount on each item>and the build-in subtotal adds everything up without subtracting the>discounts.>>Sincerely,>Nitai Aventaggiato>>> Just a thought... are you perhaps using one of the reserved words and>> confusing WebCat?>> >>> Hi all,>>> >>> Sleepless night, so please be nice:-)>>> >>> I am trying to get my own subtotal to work. I have different currencieswith>>> different taxes. Anyhow, all I need to know how I can create my own>>> subtotal (same for grandtotal).>>> >>> I have tried to write each lineitem to a temp.db and sum it all up, butcan>>> get it to work.>>> >>> I would really appreciate any comment or snippets of code. Thank you all.>> >> ------------------------------------------------------------->> 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/>>-- >We make tools to energize your business>Content Management & eBusiness Systems>>ComputerOil GmbH http://computeroil.com>Hauptstrasse 12 info@computeroil.com>8252 Schlatt/Switzerland>Tel: +41 (0)52 654 15 55>>>------------------------------------------------------------->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/
Sally Reidy
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:
emailer (1997)
Re1000001: Setting up shop (1997)
WebCatalog 3.0.8 is on FTP... (2000)
WebCat2 Append problem (B14Macacgi) (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through (1997)
Emailer (1997)
Integration with SQL (1997)
Bug Report, maybe (1997)
WebCatalog2 Feature Feedback (1996)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
[WebDNA] TCPConnect Help (2014)
[WebDNA] Anyone there ? (2013)
NT Setup (1998)
Showing unopened cart (1997)
WC Database Format (1997)
New Mac Public Beta Available (1997)
GoodPath and MoveFile (2000)
cart info (1998)
Encrypt and Commit Me (1998)
Sorting via date (2002)