Re: formulas.db

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 22443
interpreted = N
texte = >I am using this in my formulas.db >If [textB]=web then no shipping charges. > >[hideif [orderfile >cart=[cart]][lineitems][textB][/lineitems][/orderfile]=web][showif >[orderfile cart=[cart]][Header9][/orderfile]=Other]29.99[/showif][/hideif]Sorry Michael, but it looks like this is a bug in the formulas. It seems that textB is assigned *after* the formula is evaluated, so the workaround is to add another form variable (named anything, as long as it's not one of the lineitem variables) and use that variable instead of textB in your calculations.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Formulas.db not working ( Donovan Brooke 2006)
  2. Re: Formulas.db not working ( Brian Fries 2006)
  3. Re: Formulas.db not working ( Charles Kline 2006)
  4. Re: Formulas.db not working ( Donovan Brooke 2006)
  5. Re: Formulas.db not working ( Donovan Brooke 2006)
  6. Re: Formulas.db not working ( Charles Kline 2006)
  7. Re: Formulas.db not working ( Donovan Brooke 2006)
  8. Re: Formulas.db not working ( Charles Kline 2006)
  9. Re: Formulas.db not working ( "Dan Strong" 2006)
  10. Re: Formulas.db not working ( Charles Kline 2006)
  11. Re: Formulas.db not working ( Donovan Brooke 2006)
  12. Re: Formulas.db not working ( Charles Kline 2006)
  13. Re: Formulas.db not working ( Donovan Brooke 2006)
  14. Re: Formulas.db not working ( Donovan Brooke 2006)
  15. Re: Formulas.db not working ( Donovan Brooke 2006)
  16. Re: Formulas.db not working ( Gary Krockover 2006)
  17. Formulas.db not working ( Charles Kline 2006)
  18. Re: formulas.db [feature request] ( Donovan 2003)
  19. Re: formulas.db ( Stuart Tremain 2003)
  20. Re: formulas.db ( Kenneth Grome 2003)
  21. formulas.db ( Tim Robinson 2003)
  22. Re: [shippingtotal] & Formulas.db prob (WJ Starck 2003)
  23. Re: [shippingtotal] & Formulas.db prob (Gary Krockover 2003)
  24. Re: [shippingtotal] & Formulas.db prob (dbrooke 2003)
  25. Re: [shippingtotal] & Formulas.db prob (WJ Starck 2003)
  26. Re: [shippingtotal] & Formulas.db prob (dbrooke 2003)
  27. Re: [shippingtotal] & Formulas.db prob (WJ Starck 2003)
  28. [shippingtotal] & Formulas.db prob (WJ Starck 2003)
  29. Re: Formulas.db (dbrooke 2003)
  30. Re: Formulas.db (John Peacock 2003)
  31. Formulas.db (dbrooke 2003)
  32. [Mac 3.0.8] Formulas.db Question (Jesse Williams-Proudman 2003)
  33. Re: UnitShipCost, Formulas.db and passwords (John Peacock 2003)
  34. Re: UnitShipCost, Formulas.db and passwords (Alphonse MacDonald 2003)
  35. Re: UnitShipCost, Formulas.db and passwords (Donovan 2003)
  36. Re: UnitShipCost, Formulas.db and passwords (Donovan 2003)
  37. Re: UnitShipCost, Formulas.db and passwords (Donovan 2003)
  38. UnitShipCost, Formulas.db and passwords (Alphonse MacDonald 2003)
  39. Re: [shippingtotal] in Formulas.db (WJ Starck 2002)
  40. Re: [shippingtotal] in Formulas.db (Donovan Brooke 2002)
  41. Re: [shippingtotal] in Formulas.db (WJ Starck 2002)
  42. Re: [shippingtotal] in Formulas.db (Donovan Brooke 2002)
  43. [shippingtotal] in Formulas.db (WJ Starck 2002)
  44. Re: Formulas.db question (Donovan 2002)
  45. Formulas.db question (charles kline 2002)
  46. Re: Formulas.db (Donovan Brooke 2001)
  47. Re: Formulas.db (Brian Fries 2001)
  48. Re: Formulas.db (John Peacock 2001)
  49. Formulas.db (Donovan Brooke 2001)
  50. Re: Formulas.db (John Peacock 2001)
  51. Re: Formulas.db (Donovan Brooke 2001)
  52. Re: Formulas.db (Glenn Busbin 2001)
  53. Re: Formulas.db (Donovan Brooke 2001)
  54. Re: Formulas.db (John Peacock 2001)
  55. Formulas.db (Donovan Brooke 2001)
  56. Re: where's Formulas.db? (Samuel Renkert 2001)
  57. Re: where's Formulas.db? (John Peacock 2001)
  58. Re: where's Formulas.db? (Charles Kline 2001)
  59. where's Formulas.db? (Brian Wachter 2001)
  60. Re: formvars available in formulas.db? (John Butler 2000)
  61. formvars available in formulas.db? (John Butler 2000)
  62. Re: shipcost and Formulas.db (John Butler 2000)
  63. Re: shipcost and Formulas.db (Chris Vargas 2000)
  64. Re: shipcost and Formulas.db (Chris Vargas 2000)
  65. Re: shipcost and Formulas.db (John Butler 2000)
  66. shipcost and Formulas.db (Chris Vargas 2000)
  67. Re: Formulas.db (Jesse Williams Proudman 2000)
  68. Re: Formulas.db (PCS Technical Support 2000)
  69. Formulas.db (Jesse Williams Proudman 2000)
  70. Re: Frustration with formulas.db (Brian Boegershausen 1999)
  71. Re: Frustration with formulas.db (Kevin Lippert 1999)
  72. Re: Frustration with formulas.db (Brian Boegershausen 1999)
  73. Re: Frustration with formulas.db (Brian Boegershausen 1999)
  74. Re: Frustration with formulas.db (Kenneth Grome 1999)
  75. Frustration with formulas.db (Kevin Lippert 1999)
  76. Re: Problem with Formulas.db (Brian Boegershausen 1999)
  77. Problem with Formulas.db (Karim Ardalan 1999)
  78. Re: Calculate UnitShipCost in Formulas.db (Smith Micro Support 1999)
  79. Re: Calculate UnitShipCost in Formulas.db (Rodolfo de la Garza 1999)
  80. Re: Calculate UnitShipCost in Formulas.db (Chris Vargas 1999)
  81. Calculate UnitShipCost in Formulas.db (Rodolfo de la Garza 1999)
  82. Re: formulas.db (Bob Minor 1999)
  83. Re: formulas.db (PCS Technical Support 1999)
  84. formulas.db (Mícheál O Sé 1999)
  85. formulas.db (Mícheál O Sé 1999)
  86. formulas.db and prices (Mike Jones 1999)
  87. Re: Custom formulas.db (PCS Technical Support 1998)
  88. Re: Custom formulas.db (Tim Taylor 1998)
  89. Re: Custom formulas.db (PCS Technical Support 1998)
  90. Re: Custom formulas.db (Kenneth Grome 1998)
  91. Re: Custom formulas.db (Tim Taylor 1998)
  92. Re: Custom formulas.db (Grant Hulbert 1998)
  93. Re: Custom formulas.db (Kenneth Grome 1998)
  94. Re: Custom formulas.db (PCS Technical Support 1998)
  95. Re: Custom formulas.db (Kenneth Grome 1998)
  96. Re: Custom formulas.db (PCS Technical Support 1998)
  97. Custom formulas.db (Tim Taylor 1998)
  98. Re: Problem with Formulas.db (Mike Heininger 1998)
  99. Re: Problem with Formulas.db (Mike Heininger 1998)
  100. Re: Problem with Formulas.db (Kenneth Grome 1998)
  101. Re: Problem with Formulas.db (PCS Technical Support 1998)
  102. Re: Problem with Formulas.db (Mícheál O Sé 1998)
  103. Problem with Formulas.db (Mike Heininger 1998)
  104. Re: formulas.db problem solved (Mark Mesenko 1998)
  105. Re: formulas.db ?? (Peter Ostry 1998)
  106. Re: formulas.db ?? (Kenneth Grome 1998)
  107. Re: formulas.db ?? (Mark Mesenko 1998)
  108. Re: formulas.db ?? (Kenneth Grome 1998)
  109. formulas.db ?? (Mark Mesenko 1998)
  110. Re: Allowed fields in formulas.db (Paul Willis 1998)
  111. Re: Formulas.db / Quantity Discount problem (PCS Technical Support 1998)
  112. Re:Formulas.db / Quantity Discount problem (PCS Technical Support 1998)
  113. Re: Allowed fields in formulas.db (PCS Technical Support 1998)
  114. Allowed fields in formulas.db (Paul Willis 1998)
  115. Re:Formulas.db / Quantity Discount problem (Paul Uttermohlen 1998)
  116. Re:Formulas.db / Quantity Discount problem (Jay Van Vark 1998)
  117. Formulas.db / Quantity Discount problem (Paul Uttermohlen 1998)
  118. Re: Formulas.db (Grant Hulbert 1997)
  119. Formulas.db (Ray Hatch 1997)
  120. Re: [search] in formulas.db (Grant Hulbert 1997)
  121. [search] in formulas.db (Mike Heininger 1997)
  122. Looking up two prices in Formulas.db ( 1997)
  123. Looking up two prices in Formulas.db ( 1997)
  124. RE: Formulas.db + Users.db (A. Waldeck 1997)
  125. RE: Formulas.db + Users.db (Grant Hulbert 1997)
  126. RE: Formulas.db + Users.db (Kenneth Grome 1997)
  127. RE: Formulas.db + Users.db (Kenneth Grome 1997)
  128. RE: Formulas.db + Users.db (grichter@panavise.com (Gary Richter) 1997)
  129. RE: Formulas.db + Users.db (Marc Eagle 1997)
  130. Re: Formulas.db + Users.db (Sven U. Grenander 1997)
  131. Re: Formulas.db + Users.db (Express Communications 1997)
  132. Re: Formulas.db + Users.db (Richard Wylie 1997)
  133. Formulas.db + Users.db (Paul Keen 1997)
  134. Re: Variable prices and Formulas.db (Grant Hulbert 1997)
  135. Variable prices and Formulas.db (Austin H. Spiegelman 1997)
  136. Re: WebCat2: Formulas.db question (Grant Hulbert 1997)
  137. WebCat2: Formulas.db question (Ed Trefzger 1997)
  138. Re: WC2b12: Yes, Formulas.db is for real (Kenneth Grome 1997)
  139. WC2b12: Yes, Formulas.db is for real (Grant Hulbert 1997)
  140. formulas.db (Terry Wilson The )
>I am using this in my formulas.db >If [textB]=web then no shipping charges. > >[hideif [orderfile >cart=[cart]][lineitems][textB][/lineitems][/orderfile]=web][showif >[orderfile cart=[cart]][Header9][/orderfile]=Other]29.99[/showif][/hideif]Sorry Michael, but it looks like this is a bug in the formulas. It seems that textB is assigned *after* the formula is evaluated, so the workaround is to add another form variable (named anything, as long as it's not one of the lineitem variables) and use that variable instead of textB in your calculations.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

Problems reading files created by WC (1997) Thanks for tips, more quest (1997) emailer w/F2 (1997) [WebDNA] testing (2012) Counting files (1998) WebCatalog Technical Reference (1997) Images in the page without using separate image files ... (2003) Appligent PDFs (was: OT - Dig Sigs) (2004) emailer and bad addresses (1997) AppleScript/.db (was:FTP to WebStar) (2001) using showpage and showcart commands (1996) using listfiles to build a database? more (2000) Bad card db - *mislabled post* (1999) Requiring that certain fields be completed (1997) Shopping Cart ID (1998) [WebDNA] authorize.net / payeezy FirstData (2019) Reading through the Order File (1999) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Sku numbers (1997) [WebDNA] linux linux linux (2009)