Re: SetHeader context

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 21357
interpreted = N
texte = >Why does the setHeader context require a db to be specified? If I am >modifying header values, I do not think the db should not be relevant.This is a side-effect of the fact that lots of formulas are recalculated whenever a header is changed (if the taxRate changes, for instance). Sometimes those formulas like to have a database present so they can look things up. Even though they have different names, SetHeader and SetLineItem use the same internal code.>Also, I think think my copy of the WC 3.0 PDF manual is wrong in that it >says setheader requires an index# parameter. The online docs says that it >does not.Sounds like you're right -- SetLineItem would require an index, but an index makes no sense for a header. Probably due to the vagaries of copy/paste.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: SetHeader context (PCS Technical Support 1998)
  2. SetHeader context (Steve Rosenbaum 1998)
>Why does the setHeader context require a db to be specified? If I am >modifying header values, I do not think the db should not be relevant.This is a side-effect of the fact that lots of formulas are recalculated whenever a header is changed (if the taxRate changes, for instance). Sometimes those formulas like to have a database present so they can look things up. Even though they have different names, SetHeader and SetLineItem use the same internal code.>Also, I think think my copy of the WC 3.0 PDF manual is wrong in that it >says setheader requires an index# parameter. The online docs says that it >does not.Sounds like you're right -- SetLineItem would require an index, but an index makes no sense for a header. Probably due to the vagaries of copy/paste.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:

Another bug -- in the docs ... (2002) Problems with [Search] param - Mac Plugin b15 (1997) Multiple SSL Keys (1998) Summing fields (1997) WebCat2b12--[searchstring] bug (1997) Webcat & SIMS (1998) Referrer (2000) Windows-based Code Editor (2002) Limiting user access to .tmpl files (1997) Simple Page (2000) Extra equals signs with IE? (More debugging questions...) (1997) SiteEditPro (1996) t or f (1997) Authenticate (1997) More on the email templates (1997) Secure server question (1997) Rhapsody? (1997) where to put code (1998) Here's how to kill a Butler Database. (1997) [WebDNA] Code works in v6 but not in v7 (2010)