Re: Reversed words

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10375
interpreted = N
texte = >Per the pdf file it claims that there are certain reserved words like >address1 and address2 and email and company and price, etc.This is only important if you plan to use the shopping cart. The shopping cart file has header fields named address1, email, etc. While it is possible to have a database with exactly those fieldnames, we recommend for simplicity that you stay away from those names to reduce confusion if you ever want to display database field address1 on the same page where a shopping cart header field address1 is also displayed.WebCatalog2 'does the right thing' in these cases; it looks for the fieldname that is closest 'in context' to what you're displaying, but sometimes it's confusing to us humans.For example, if you have a database field named [date] and you use the following, what happens?[foundItems] [date]
[/foundItems]WebCatalog is smart enough to realize that there is a [date] field in the database, and will use that field instead of today's date. But at this time there is no way for you to display both the database field and today's date inside that [foundItems] loop, because it has no way of knowing which one you mean.[date] <-- displays today's date, because this is outside [founditems] context [foundItems] [date] <-- displays database field date because this is inside foundItems loop [/foundItems]If the database does _not_ contain a date field, then of course Today's date will be displayed.So if you want an address1 field, go ahead, but realize there may be some rare situations where it's confusing.Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com ------------------------------------ To leave this talk list send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Associated Messages, from the most recent to the oldest:

    
  1. Re: Reversed words (Kenneth Grome 1997)
  2. Re: Reversed words (Grant Hulbert 1997)
  3. Reversed words (grichter@panavise.com (Gary Richter) 1997)
>Per the pdf file it claims that there are certain reserved words like >address1 and address2 and email and company and price, etc.This is only important if you plan to use the shopping cart. The shopping cart file has header fields named address1, email, etc. While it is possible to have a database with exactly those fieldnames, we recommend for simplicity that you stay away from those names to reduce confusion if you ever want to display database field address1 on the same page where a shopping cart header field address1 is also displayed.WebCatalog2 'does the right thing' in these cases; it looks for the fieldname that is closest 'in context' to what you're displaying, but sometimes it's confusing to us humans.For example, if you have a database field named [date] and you use the following, what happens?[founditems] [date]
[/foundItems]WebCatalog is smart enough to realize that there is a [date] field in the database, and will use that field instead of today's date. But at this time there is no way for you to display both the database field and today's date inside that [founditems] loop, because it has no way of knowing which one you mean.[date] <-- displays today's date, because this is outside [founditems] context [founditems] [date] <-- displays database field date because this is inside foundItems loop [/foundItems]If the database does _not_ contain a date field, then of course Today's date will be displayed.So if you want an address1 field, go ahead, but realize there may be some rare situations where it's confusing.Grant Hulbert, V.P. Engineering | Tools for WebWarriors Pacific Coast Software | WebCatalog, WebCommerce Solution 11770 Bernardo Plaza Court, #462 | SiteEdit, SiteCheck, PhotoMaster San Diego, CA 92128 | 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com ------------------------------------ To leave this Talk List send an email to macjordomo@smithmicro.com with BODY unsubscribe WebDNA-Talk ------------------------------------ Grant Hulbert

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:

Credit card processing - UK (1997) read and write you own cookies with webcat (1997) searching multiple databases in single search (1997) Shipping Help! (1998) [include ...] behavior (1997) Searchable WebCat (etc.) Docs ? (1997) keeping carts... (2005) Security Tip (1996) Digest for 09-30-97 (1997) WebCat2 several catalogs? (1997) cannot delete last admin (1999) Newbie problem blah blah blah (1997) Country & Ship-to address & other fields ? (1997) Multiple prices (1997) Cart Template (1997) Enhanced Master Counter? (1997) Credit card processing - UK (1997) fyi: (JavaScript) AJAX and WebDNA (2005) CommandSecurity? (1997) Updating fields from different platforms (1998)