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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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:
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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 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)