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:

SMSI: databases corrupted on crash and permission issueson OSX (2002) Separate SSL Server (1997) Re2: frames & carts (1997) resorting found set (2005) ListFields and [name] (1997) wish list (2002) Sample Tearoom Search Error (1997) Anyone have an invoicing system? (1999) [WebDNA] New Mountain Lion OSX Server (2013) IPAddress Spoof? (2003) rename a file (1997) setting taxable to true (1997) Prepaid monthly subscription order fulfillment question (2004) Nested tags count question (1997) 2.0Beta Command Ref (can't find this instruction) (1997) page redirect in webDNA (1997) Preventing Merchant Settling ? (1997) Adding Text (2000) TeaRoom Search page (2000) Netscape Communicator 4 (1997)