RE: Automatic Forwarding using WebCat

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13157
interpreted = N
texte = Michael -Sounds fine to me - you don't really have wildcards, like '*', but you get other operators with [hideif] and [showif] like 'contains' or 'starts with' (see the [hideif] context in the manual). For example, you could check to see if the filename starts with the cart number, like [showif [filename]~[cart]]...[/showif], or just look for the exact filename, since you know what it's going to be. It's up to you...cheers,Marc Eagle StarNine Technologies http://www.smithmicro.com/ >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][/lineite >ms][/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][/lineit >ems][/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 Bohan >Music on Demand, LLC > Associated Messages, from the most recent to the oldest:

    
  1. RE: Automatic Forwarding using WebCat (Marc Eagle 1997)
  2. RE: Automatic Forwarding using WebCat (Michael Bohan 1997)
  3. RE: Automatic Forwarding using WebCat (Marc Eagle 1997)
Michael -Sounds fine to me - you don't really have wildcards, like '*', but you get other operators with [hideif] and [showif] like 'contains' or 'starts with' (see the [hideif] context in the manual). For example, you could check to see if the filename starts with the cart number, like [showif [filename]~[cart]]...[/showif], or just look for the exact filename, since you know what it's going to be. It's up to you...cheers,Marc Eagle StarNine Technologies http://www.smithmicro.com/ >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][/lineite >ms][/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][/lineit >ems][/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 Bohan >Music on Demand, LLC > Marc Eagle

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:

Date problems (1997) security (https) w webcat (1999) Opinion: [input] should be called [output] ... (1997) [WebDNA] Old Problem, the exclamation point (2014) Help! WebCat2 bug (1997) Stopping bad HTML propagation ? (1997) WebCatalog for guestbook ? (1997) Appending current [date] to a database (1997) Malformed Pages (1999) Sorting Date (2004) IIS4/WebCat3.0 Authentication (1999) windows file upload = weirdness (2004) texta,b,c,d,e (urgent) (2003) Rollovers (1999) Number of files in a directory (2006) Setting up shop (1997) Help name our technology! (1997) best way to test for the existence of a parameter in a url (2003) Quitting WebMerchant ? (1997) Erotic Sites (1997)