Re: SetHeader not Working
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67438
interpreted = N
texte = I even hard-coded something, but it's not working. There aren't any errorscoming up.[SetHeader file=products/Orders/110246666495]Date=05/01/2006&AcccountNum=xxxx&ExpMonth=xx&ExpYear=xxxx[/SetHeader]On 6/13/06 9:05 AM, "Clint Davis"
wrote:> I want to wipe the credit card information from orderfiles older than 30> days. I'm using listfiles on my orders folder and adding each to a temp db.> Then, I search the temp db to find orders over 30 days old. Finally, I use> setheader to remove the CC info.> > When I run the script below, the date in the orderfile is changed to today,> and the CC info is not altered. Anyone see a problem with the code?> > MacOS X 10.4.6 | WebDNA 6.0a> > [delete db=admin/orders-tmp.db&neIDdata=find_all]> [listfiles products/Orders/]> [orderfile file=products/Orders/[filename]]> [append db=admin/orders-tmp.db]ID=[filename]&THEDATE=[date][/append]> [/orderfile]> [/listfiles]> [search db=admin/orders-tmp.db&lsTHEDATEdatarq=[math> date]{[date]}-{00/30/0000}[/math]&THEDATEsort=1&THEDATEtype=date]> [founditems]> [THEDATE]|[ID]
> [setheader> file=products/Orders/[ID]]date=[THEDATE]&acccountNum=&expMonth=&expYear=[/se> theader]> [/founditems]> [/search]-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I even hard-coded something, but it's not working. There aren't any errorscoming up.[SetHeader file=products/Orders/110246666495]Date=05/01/2006&AcccountNum=xxxx&ExpMonth=xx&ExpYear=xxxx[/SetHeader]On 6/13/06 9:05 AM, "Clint Davis" wrote:> I want to wipe the credit card information from orderfiles older than 30> days. I'm using listfiles on my orders folder and adding each to a temp db.> Then, I search the temp db to find orders over 30 days old. Finally, I use> setheader to remove the CC info.> > When I run the script below, the date in the orderfile is changed to today,> and the CC info is not altered. Anyone see a problem with the code?> > MacOS X 10.4.6 | WebDNA 6.0a> > [delete db=admin/orders-tmp.db&neIDdata=find_all]> [listfiles products/Orders/]> [orderfile file=products/Orders/[filename]]> [append db=admin/orders-tmp.db]ID=[filename]&THEDATE=[date][/append]> [/orderfile]> [/listfiles]> [search db=admin/orders-tmp.db&lsTHEDATEdatarq=[math> date]{[date]}-{00/30/0000}[/math]&THEDATEsort=1&THEDATEtype=date]> [founditems]> [THEDATE]|[ID]
> [setheader> file=products/Orders/[ID]]date=[THEDATE]&acccountNum=&expMonth=&expYear=[/se> theader]> [/founditems]> [/search]-------------------------------------------------------------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://webdna.smithmicro.com/
Clint Davis
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:
RE: E-mailer error codes (1997)
Search in 2 or more catalogs (1997)
Email (1998)
Updating a database once per day - An example (1998)
Email notification to one of multiple vendors ? (1997)
Help with nested search (1998)
Re:no template caching (1997)
Number of Line Items (1998)
[WriteFile] problems (1997)
too many nested tags ... (1997)
RE: Problems reading files created by WC (1997)
date tag not interpreted (2000)
Sorting Numbers (1997)
New public beta available (1997)
[OT] Deploying XRAID (2003)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
[Announce]: Web server security and password protection (1997)
TCPConnect / TCPSend to Solaris NN Enterprise (2002)
New Webcatalog for Mac (1997)
Spiders and Bots (2000)