Re: SetHeader not Working
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 67439
interpreted = N
texte = I'm opening the actual orderfile after running the script.On 6/13/06 9:19 AM, "WJ Starck"
wrote:> How do you know the cc info is not being changed-are you looking at> the actual orderfiles themselves, or just what is displayed on this> template?> > -Will> > > On Jun 13, 2006, at 9:05 AMCDT, 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'm opening the actual orderfile after running the script.On 6/13/06 9:19 AM, "WJ Starck" wrote:> How do you know the cc info is not being changed-are you looking at> the actual orderfiles themselves, or just what is displayed on this> template?> > -Will> > > On Jun 13, 2006, at 9:05 AMCDT, 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:
Checking two required fields (1998)
WebCat.acgi from /cgi-bin/? (1997)
Credit card processing - UK (1997)
WCS Newbie question (1997)
Replace Statement (1997)
SiteEdit Pro Update Announcement (1997)
Validating A Date (2004)
delete after x (1998)
File Upload Problems (HELP!) (2000)
Chown www:wheel Almost There WebCat 5 on itools 7 (2003)
New Command prefs ... (1997)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
WebCatalog for Postcards ? (1997)
WebCat2.0 [format thousands .0f] no go (1997)
formula inside database to calculate weights (1997)
[writefile] (1997)
UPS/FEDEX/OTHER Ship lookups available?? (1998)
[OT] Theiving B*****ds (2004)
PIXO Support (1997)
Funny Chars (1999)