Re: SetHeader not Working
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67440
interpreted = N
texte = Hi Clint,the date in the orderfile is changed to today because of the setheader itself.I don't think you can override it and that may be why it is stopping at thatpoint.. (I've never tried to override it).Why not do something like:[text]thedate=[math]{[date]}[/math][text][listfiles products/orders] [text]age=[math][thedate]-[math]{[orderfile file=products/orders/[filename]][date][/orderfile]}[/math][/math][text] [showif [age]>30] [setheader file=[products/orders/[filename]]accountNum=&expMonth=&expYear=[/setheader] [/showif][/listfiles]This is something I typed quickly so it is not tested for syntax errors.DonovanClint 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]-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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:
Hi Clint,the date in the orderfile is changed to today because of the setheader itself.I don't think you can override it and that may be why it is stopping at thatpoint.. (I've never tried to override it).Why not do something like:[text]thedate=[math]{[date]}[/math][text][listfiles products/orders] [text]age=[math][thedate]-[math]{[orderfile file=products/orders/[filename]][date][/orderfile]}[/math][/math][text] [showif [age]>30] [setheader file=[products/orders/[filename]]accountNum=&expMonth=&expYear=[/setheader] [/showif][/listfiles]This is something I typed quickly so it is not tested for syntax errors.DonovanClint 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]-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Custom Paint, Labels, and Specialty Signage. -> <- Home and Business Embellishment/Fabrication, -> <- Glass Blowing, and Art Glass -> PH/FAX:> 1 (608) 835-2476 Web:> http://www.egg.bz | http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------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/
Donovan Brooke
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:
SetLineItem (1997)
New commands in Final candidate (1997)
Repost: Orderfile, Grandtotal: How do I get it to all add up. (2000)
re: Large databases in WebCat (1997)
Notepad problems (1998)
[OT] Half completed orders (2005)
[WebDNA] returnraw redirects on version 6.2.1 on CentOS (2013)
WebCatalog for Postcards ? (1997)
See [shell]s (2008)
System 8.5.1 question (1999)
[WebDNA] Pages dying (2008)
WebCat2b15MacPlugin - showing [math] (1997)
IIS4b2 and WebCatalog b19 (1997)
Click-through/Referral tracking solution needed (2000)
Trouble creating a temp database (2000)
GD Scumbucket Spammer (2004)
[OT][OT] OSX email client (2002)
Country & Ship-to address & other fields ? (1997)
Re:Emailer tracking (1997)
Shipping charges based on dollar level (1997)