RE: Automatic Forwarding using WebCat
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13130
interpreted = N
texte = Thanks Marc, I really appreciate you catching those syntax errors for me. It saved me much weeping and gnashing of teeth.There's one thing that I'm not sure about though...> - you don't need a [lineitems] context inside the [listfiles] context; it will loop through> all files automatically.>[listfiles /StockRoom][lineitems][showif >filename=[SKU].[lineindex]][math]testindex=testindex+1[/math][/showif][/lineitems][/listfiles]Oh, you're right, I had a mistake in that line.Actually, it should read:>[listfiles /StockRoom][lineitems][showif >filename=[cart].[lineindex]][math]testindex=testindex+1[/math][/showif][/lineitems][/listfiles]the filename I'm looking for is [cart].[lineindex], not [sku].[lineindex]. Oops.Which brings up the point that this is not the best way to do what I want to do (if WebCat can use wildcards, which I'm not sure). If it will use wildcards I can just count the [cart].* filenames. If there are four lineitems in the order and four files that match [cart].*, then they must all be there, right?If webcat doesn't accept wildcards for filenames, then I think the above code will work (the revised version), because I want to do the following: I want to have it step through the files in the folder and compare each with all the files in the order. Each time it finds a match, it adds one to [testindex]. Then I compare this with the total number of items in the order to see if they're all there.Let me know if I'm missing something. Sorry about the [SKU]/[cart] mistake. That's confusing.Thanks, Marc, this mailing list has helped me again.Michael BohanMusic on Demand, LLCSincerely,Michael Bohan--------------------Music on Demand, LLCjmbohan@flash.net
Associated Messages, from the most recent to the oldest:
Thanks Marc, I really appreciate you catching those syntax errors for me. It saved me much weeping and gnashing of teeth.There's one thing that I'm not sure about though...> - you don't need a
[lineitems] context inside the
[listfiles] context; it will loop through> all files automatically.>[listfiles /StockRoom]
[lineitems][showif >filename=[SKU].[lineindex]]
[math]testindex=testindex+1[/math][/showif][/lineitems][/listfiles]Oh, you're right, I had a mistake in that line.Actually, it should read:>[listfiles /StockRoom]
[lineitems][showif >filename=
[cart].[lineindex]]
[math]testindex=testindex+1[/math][/showif][/lineitems][/listfiles]the filename I'm looking for is
[cart].[lineindex], not [sku].[lineindex]. Oops.Which brings up the point that this is not the best way to do what I want to do (if WebCat can use wildcards, which I'm not sure). If it will use wildcards I can just count the
[cart].* filenames. If there are four lineitems in the order and four files that match
[cart].*, then they must all be there, right?If webcat doesn't accept wildcards for filenames, then I think the above code will work (the revised version), because I want to do the following: I want to have it step through the files in the folder and compare each with all the files in the order. Each time it finds a match, it adds one to [testindex]. Then I compare this with the total number of items in the order to see if they're all there.Let me know if I'm missing something. Sorry about the [SKU]/
[cart] mistake. That's confusing.Thanks, Marc, this mailing list has helped me again.Michael BohanMusic on Demand, LLCSincerely,Michael Bohan--------------------Music on Demand, LLCjmbohan@flash.net
Michael Bohan
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:
ShowNext (1997)
Pre-flight public flag (1997)
Dates (1996)
Calendar using WebCatalog? (1997)
Problems with [Applescript] (1997)
Running _every_ page through WebCat ? (1997)
WebCat2 several catalogs? (1997)
showif field is number (1997)
Redirect (2000)
[WebDNA] WebDNA v7 linux setup with Lighttpd (2011)
Subtotal and Grand Total Changes (2000)
can WC render sites out? (1997)
Nesting format tags (1997)
RE: incrementing a counter remotely? (1999)
Price recalc based on quantity (1997)
RE: Writefile outside WebSTAR hierarchy? (1997)
rotating thumbnails (1997)
Frames (1997)
error -571 (2004)
syntax question, not in online refernce (1997)