Re: Adding Header Values with [SetHeader]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16315
interpreted = N
texte = Reply to: Re: Adding Header Values with [SetHeader]Grant Hulbert wrote: >>I would like to use the [SetHeader] context to place the above >>information into the header field. >> >> >>Where do I put the [SetHeader] context? >> >>I assume that it should be something like this: >>[SetHeader >>cart=[cart]&db=d2mcust.db]Header2=[building]&Header3=[faxareacode]&Header3 >=[suite] >>[/SetHeader] > >Yes, that looks like the correct syntax. You can put this WebDNA right >next to your [Append] stuff as long as WebCatalog knows a couple of things at that >instant: > >1) The cart# must be known (I'm assuming you're doing this in a template >that has cart=xxx passed in)The template has: I can print out the cart on top of the page, and it matches the cart on the referring page. >2) Realize the order file might actually have moved into the Orders folder >by this point (after a purchase), so you may need to do [SetHeader >file=Orders/[cart]... instead. Using cart= assumes it's in the ShoppingCarts folder, but using >file= lets you find it anywhere. >I haven't finalized the purchase at this time. When I try and use the following:[clearlineitems cart=[cart]] Cart Number for testing purposes is [cart] [orderfile cart=[cart]] The building number is [header2]
[/orderfile]I see the words 'The building number is ', but nothing is returned for the cart header2 field. I can print out the cart, and it matches the cart on the referring page. Associated Messages, from the most recent to the oldest:

    
  1. Re: Adding Header Values with [SetHeader] (Larry Orchier 1998)
  2. Re: Adding Header Values with [SetHeader] (Grant Hulbert 1998)
  3. Re: Adding Header Values with [SetHeader] (Kenneth Grome 1998)
  4. Adding Header Values with [SetHeader] (Larry Orchier 1998)
Reply to: Re: Adding Header Values with [setheader]Grant Hulbert wrote: >>I would like to use the [setheader] context to place the above >>information into the header field. >> >> >>Where do I put the [setheader] context? >> >>I assume that it should be something like this: >>[SetHeader >>cart=[cart]&db=d2mcust.db]Header2=[building]&Header3=[faxareacode]&Header3 >=[suite] >>[/SetHeader] > >Yes, that looks like the correct syntax. You can put this WebDNA right >next to your [append] stuff as long as WebCatalog knows a couple of things at that >instant: > >1) The cart# must be known (I'm assuming you're doing this in a template >that has cart=xxx passed in)The template has: [cart]>I can print out the cart on top of the page, and it matches the cart on the referring page. >2) Realize the order file might actually have moved into the Orders folder >by this point (after a purchase), so you may need to do [SetHeader >file=Orders/[cart]... instead. Using cart= assumes it's in the ShoppingCarts folder, but using >file= lets you find it anywhere. >I haven't finalized the purchase at this time. When I try and use the following:[clearlineitems cart=[cart]] Cart Number for testing purposes is [cart] [orderfile cart=[cart]] The building number is [header2]
[/orderfile]I see the words 'The building number is ', but nothing is returned for the cart header2 field. I can print out the cart, and it matches the cart on the referring page. Larry Orchier

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:

File not found error message (1998) FileMaker Pro (1999) using showpage and showcart commands (1996) Lookup Notfound (1998) Protect vs Authenicate (1997) Header Problems (1998) Problem with version 4 browsers (1998) shipping costs (1997) acrobat -> wc (1998) Mass-mailer options - any suggestions ? (2005) Payment calculator ?? (2000) I want a 404 (2005) Transfering [text] variables (2000) Three new problems, maybe a fourth (1997) Mac: LModelDirector bug fix (1997) Basics of tcpconnect (2006) question: Eudora 3.1.1 (1997) What am I doing wrong? --GOT IT! (2000) Database changes (1998) International Orders (1998)