Re: Forumulas.db & Variables
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45830
interpreted = N
texte = >>I want shipping to be based on [shipvia] and tax to be based on [state] and>I can't used either of them in the Formulas.db because when I put them in,>they come up as blank...>Like I said, the Formulas.db will recognize only certain field names. (See the docs.) That's why a field name like [state] is unacceptable. You can, however, use the value of [state] if you name it TextA-E in the formula.On the page in which the item is selected to be added to the shopping cart, set the input name as [TextA-E] and its value as [state].In the Formulas.db, use the [TextA-E] values. The state=[state] or shipvia=[shipvia] values simply won't be used in the price calcs.In the orderfile contexts on the ShoppingCart page, you can have the state shown, but only if you call it [TextA-E].The use of variables in the Formulas.db and the orderfile context isn't intuitive, IMO, because of the restrictions on field names. It's a security thing to prevent unauthorized changing of [price].Glenn-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>>I want shipping to be based on [shipvia] and tax to be based on [state] and>I can't used either of them in the formulas.db because when I put them in,>they come up as blank...>Like I said, the formulas.db will recognize only certain field names. (See the docs.) That's why a field name like [state] is unacceptable. You can, however, use the value of [state] if you name it TextA-E in the formula.On the page in which the item is selected to be added to the shopping cart, set the input name as [TextA-E] and its value as [state].In the formulas.db, use the [TextA-E] values. The state=[state] or shipvia=[shipvia] values simply won't be used in the price calcs.In the orderfile contexts on the ShoppingCart page, you can have the state shown, but only if you call it [TextA-E].The use of variables in the formulas.db and the orderfile context isn't intuitive, IMO, because of the restrictions on field names. It's a security thing to prevent unauthorized changing of [price].Glenn-------------------------------------------------------------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://webdna.smithmicro.com/
Glenn Busbin
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:
Nesting format tags (1997)
Aaron kant add (or whatever it was) (2000)
MORE: Can I determine where they are coming from? (2000)
Problems searching from a FORM (1997)
WebMerchant Error (1998)
The force has left me. (2002)
Solve the Problem, get the code! (2001)
show all problem (1997)
RE: New WebCatalog Version !!! (1997)
Document Contains No Data msg (1997)
Expected behavior? (1998)
woops - speed results - right subject (2002)
orderfile headers (was: 2nd Request for help/adviceonvariable pricing) (2000)
Search / Results on unrecognized characters (2003)
Security Question (1997)
Virtual hosting and webcatNT (1997)
[append] vs. [appendfile] delta + question? (1997)
Error Messges (1997)
PC Auth Hub+Merchant (1998)
Re:WebCat for mass emailings (1997)