Re: where's Formulas.db?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 37030
interpreted = N
texte = >This said, it would be nice of SMSI to finally allow us to use our>own Formulas.db for values other than Price, unitShipCost, Taxable,>etc.>> [quadratic file=^myformulas.db&parm1=[x]&parm2=[y]]>>returns>> x**2 + y**2>>or whatever. WebCat should be smart enough to recognize that any>keyword that does not match one of its own must be a formula listed>in the file ^myformulas.db (in that case).>You can emulate that functionality with standard WC code.In you file:[include file=^formulas.inc&eq=quadratic¶m1=[x]¶m2=[y]]In formulas.inc:[interpret][lookup db=^myformulas.db&lookinfield=eq&value=[eq]&returnfield=eqcode¬found=[eq] not found.][/interpret]In myformulas.db:eq eqcodequadratic [math][param1]**2+[param2]**2[/math]-Sam-------------------------------------------------------------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:
>This said, it would be nice of SMSI to finally allow us to use our>own formulas.db for values other than Price, unitShipCost, Taxable,>etc.>> [quadratic file=^myformulas.db&parm1=[x]&parm2=[y]]>>returns>> x**2 + y**2>>or whatever. WebCat should be smart enough to recognize that any>keyword that does not match one of its own must be a formula listed>in the file ^myformulas.db (in that case).>You can emulate that functionality with standard WC code.In you file:[include file=^formulas.inc&eq=quadratic¶m1=[x]¶m2=[y]]In formulas.inc:[interpret][lookup db=^myformulas.db&lookinfield=eq&value=[eq]&returnfield=eqcode¬found=[eq] not found.][/interpret]In myformulas.db:eq eqcodequadratic [math][param1]**2+[param2]**2[/math]-Sam-------------------------------------------------------------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/
Samuel Renkert
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:
RequiredFields template (1997)
Next X hits (1996)
list items (1998)
WebCatalog can't find database (1997)
my price won't move (1997)
Type 11 errors setting up WebCAt 2 (1997)
Template Encryption (1998)
Help name our technology! I found it (1997)
Summary search -- speed (1997)
using showpage and showcart commands (1996)
Running _every_ page through WebCat-error.html (1997)
A few questions. . . (1997)
wierd crashes for multi-sendmails on NT (1997)
[WebDNA] Not even sure what to ask for help on. . . :( (2008)
Encrypt/Decrypt (2007)
WCS Newbie question (1997)
OT-JS question (2001)
WCS Newbie question (1997)
carriage returns in data (1997)
Searching with a form (2000)