Re: Price and Formula.db

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 45570
interpreted = N
texte = Donovan wrote: > Can a variable be passed into a formulas.db other than the > orderfile/lineitems and internal webcat > variables? > How would you expect to pass in a variable to the formulas? If you are using the '?add' command and including an additional URL parameter, then the answer is, I believe, no. Using a [addlineitem] context is much more likely to give you the control you need.Formulas.db is only used (currently) when adding an item to the cart. As such, it automatically gains access to the current orderfile header fields, any and all fields from the database that is included as part of the add command/context, all builtin webcat contexts, and AFAIK any and all active form variables at that point on the page.To confirm this, add something like this to the price line in your formulas.db: [WriteFile SomeTextFile][FormVariables][index],[name],[value]
[/FormVariables][/WriteFile](obviously all as a single line). This will show you exactly what is available for you to use within the formulas.db.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- 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: [SMSI]Re: Price and Formula.db (Donovan 2002)
  2. Re: [SMSI]Re: Price and Formula.db (Scott Anderson 2002)
  3. [SMSI]Re: Price and Formula.db (Donovan 2002)
  4. Re: Price and Formula.db (John Peacock 2002)
  5. Re: Price and Formula.db (Donovan 2002)
  6. Re: Price and Formula.db (Glenn Busbin 2002)
  7. Re: Price and Formula.db (Donovan Brooke 2002)
  8. Re: Price and Formula.db (Gary Krockover 2002)
  9. Re: Price and Formula.db (Gary Krockover 2002)
  10. Re: Price and Formula.db (Gary Krockover 2002)
  11. Re: Price and Formula.db (Glenn Busbin 2002)
  12. Re: Price and Formula.db (Donovan Brooke 2002)
  13. Re: Price and Formula.db (Stuart Tremain 2002)
  14. Re: Price and Formula.db (Arturo Vargas 2002)
  15. Re: Price and Formula.db (Andrew Simpson 2002)
  16. Re: Price and Formula.db (Glenn Busbin 2002)
  17. Re: Price and Formula.db (Gary Krockover 2002)
  18. Re: Price and Formula.db (Donovan 2002)
  19. Re: Price and Formula.db (Glenn Busbin 2002)
  20. Re: Price and Formula.db (Donovan 2002)
  21. Re: Price and Formula.db (Andrew Simpson 2002)
  22. Re: Price and Formula.db (Glenn Busbin 2002)
  23. Re: Price and Formula.db (Donovan 2002)
  24. Re: Price and Formula.db (Andrew Simpson 2002)
  25. Re: Price and Formula.db (Andrew Simpson 2002)
  26. Re: Price and Formula.db (Glenn Busbin 2002)
  27. Re: Price and Formula.db (Andrew Simpson 2002)
  28. Price and Formula.db (Glenn Busbin 2002)
Donovan wrote: > Can a variable be passed into a formulas.db other than the > orderfile/lineitems and internal webcat > variables? > How would you expect to pass in a variable to the formulas? If you are using the '?add' command and including an additional URL parameter, then the answer is, I believe, no. Using a [addlineitem] context is much more likely to give you the control you need.formulas.db is only used (currently) when adding an item to the cart. As such, it automatically gains access to the current orderfile header fields, any and all fields from the database that is included as part of the add command/context, all builtin webcat contexts, and AFAIK any and all active form variables at that point on the page.To confirm this, add something like this to the price line in your formulas.db: [WriteFile SomeTextFile][formvariables][index],[name],[value]
[/FormVariables][/WriteFile](obviously all as a single line). This will show you exactly what is available for you to use within the formulas.db.HTHJohn-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4720 Boston Way Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5747 ------------------------------------------------------------- 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/ John Peacock

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:

Sku numbers (1997) Emailer [cart] file names (1997) 2.0 Info (1997) adding second sku (2000) won't serve .tpl (2000) For those of you not on the WebCatalog Beta... (1997) Summary search -- speed (1997) [Sum] function? (1997) All choice in popups (1997) Only charge card when product shipped ? (1997) Problem with Formulas.db (1998) Happy New Year (2008) [WebDNA] Sandbox question (2009) TaxTotal Problem (1997) Cookies not being set on PC/ Explorer (2000) Emailer (1997) Re:No Data (1997) PCS Frames (1997) Country & Ship-to address & other fields ? (1997) Exclamation point (1997)