Re: Bad/GoodPath.inc and value of [cart]?
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35625
interpreted = N
texte = I would display the [numfound] to see if your search is finding anything, ifthe search doesn't find something your founditems code will never getexecuted. If your search doesn't find something then I would display thesearchstring in the page to see if you can figure out what's wrong:search db=adstorage.db&eqSKUdatarq=[url][GetCharsstart=1&end=8&from=end][cart][/GetChars][/url]&max=1If your search is finding something I would isolate the appenfile and makesure it works all by itself.I need to have an [appendfile] context in my BadPath.inc and GoodPath.incfiles (I actually need it in the GoodPath.inc file only eventually, but iwant it in BadPath.inc for testing purposes). I've got it set up right now,but it doesn't seem to work, as it's not outputting any file.One problem may be that I'm searching my products db using [cart] as avalue. Is [cart] still available at this point in DoPurchases.tpl? Do I needto make sure to pass it from my Invoice.tpl and ThankYou.tpl pages to makesure it gets sent to DoPurchases.tpl?I could also search on [SKU], as I generate the value of [SKU] early on,based on the value of [cart] (same getChars code as in the search below).The code in question in BadPath.inc is below, and I just added it after theother code that's already in that file (sends emails, overwrites theprocessing file generated by ThankYou.tpl, etc.):----------------- CODE -------------------------[!] **** This is the code that exports the info to the cgioutput.txt filefor BaseView to import **** [/!][search db=adstorage.db&eqSKUdatarq=[url][GetCharsstart=1&end=8&from=end][cart][/GetChars][/url]&max=1][founditems][AppendFile file=cgioutput.txt]B|A|[ADCLASS]||||||||||||N|T|[AD_BODY]S|[EDITION]|[AD_START]|[AD_DAYS]||C||||[NAME_FIRST]|[NAME_LAST]|[COMPANY]||[AREACODE]|[PHONENUM]|[ADDRESS1]|[ADDRESS2]|[CITY]|[STATE]|[ZIP]|[EMAIL]|E|[/appendfile][/founditems][/search]----------------- CODE -------------------------This is really the lynchpin of this app, and what I thought would be an easything to do, isn't. I can successfully do the AppendFile earlier in theprocess, but I need to wait until the GoodPath.inc actions to do so in thefinal product.Any advice would be appreciated!Thanks,Steve------------------------------------------------Steven JarvisWeb Developersjarvis@nwaonline.netMorning News of Northwest Arkansashttp://www.nwaonline.net-------------------------------------------------------------------------------------------------------------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 toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I would display the [numfound] to see if your search is finding anything, ifthe search doesn't find something your founditems code will never getexecuted. If your search doesn't find something then I would display thesearchstring in the page to see if you can figure out what's wrong:search db=adstorage.db&eqSKUdatarq=[url][GetCharsstart=1&end=8&from=end][cart][/GetChars][/url]&max=1If your search is finding something I would isolate the appenfile and makesure it works all by itself.I need to have an [appendfile] context in my BadPath.inc and GoodPath.incfiles (I actually need it in the GoodPath.inc file only eventually, but iwant it in BadPath.inc for testing purposes). I've got it set up right now,but it doesn't seem to work, as it's not outputting any file.One problem may be that I'm searching my products db using [cart] as avalue. Is [cart] still available at this point in DoPurchases.tpl? Do I needto make sure to pass it from my Invoice.tpl and ThankYou.tpl pages to makesure it gets sent to DoPurchases.tpl?I could also search on [SKU], as I generate the value of [SKU] early on,based on the value of [cart] (same getChars code as in the search below).The code in question in BadPath.inc is below, and I just added it after theother code that's already in that file (sends emails, overwrites theprocessing file generated by ThankYou.tpl, etc.):----------------- CODE -------------------------[!] **** This is the code that exports the info to the cgioutput.txt filefor BaseView to import **** [/!][search db=adstorage.db&eqSKUdatarq=[url][GetCharsstart=1&end=8&from=end][cart][/GetChars][/url]&max=1][founditems][AppendFile file=cgioutput.txt]B|A|[ADCLASS]||||||||||||N|T|[AD_BODY]S|[EDITION]|[AD_START]|[AD_DAYS]||C||||[NAME_FIRST]|[NAME_LAST]|[COMPANY]||[AREACODE]|[PHONENUM]|[ADDRESS1]|[ADDRESS2]|[CITY]|[STATE]|[ZIP]|[EMAIL]|E|[/appendfile][/founditems][/search]----------------- CODE -------------------------This is really the lynchpin of this app, and what I thought would be an easything to do, isn't. I can successfully do the AppendFile earlier in theprocess, but I need to wait until the GoodPath.inc actions to do so in thefinal product.Any advice would be appreciated!Thanks,Steve------------------------------------------------Steven JarvisWeb Developersjarvis@nwaonline.netMorning News of Northwest Arkansashttp://www.nwaonline.net-------------------------------------------------------------------------------------------------------------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 toWeb Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------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://search.smithmicro.com/
John Jakovich
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:
Showif for mulitple variations (1997)
Remote stockroom ? (1998)
Web Browser %Numbers - A must read for web developers (2003)
Dynamic Form - Shipping Country / State/ Province (2006)
Mac: LModelDirector bug fix (1997)
RE: [isfolder] and [filename] (1997)
RE: IIS4b2 and WebCatalog b19 (1997)
Use WebCat to search files in a folder like a search engine? (2001)
[WebDNA] WebDNA & VPS (2009)
WebCatalog2 Feature Feedback (1996)
Odd search results, or odd programmer, not sure which... (2002)
[SHOWIF]s and empty arguments (1997)
foreign languages, email, webcat (1998)
WebDelivery downloads alias, not original ? (1997)
UPS Shipping Docs (Where To Go) (1999)
Updating Prices in DB (working) (1999)
setting cookies with [setcookie] (1998)
PSC recommends what date format yr 2000??? (1997)
Discounting prices across a site (1997)
Mac 2.1b4 unknown error: BadSuffix (1997)