[LINEITEMS]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31801
interpreted = N
texte = Just a weird little thing I noticed...ok, so we are working with a hypothetical cart here:if I go: [ORDERFILE=/ShoppingCarts/[CART]] and [cart] has 3 items (sku1, sku2, sku3) in it, and then I: [LINEITEMS][INDEX], [SKU][/LINEITEMS] it gives me 1 sku1,2 sku2,3 sku3, but if I want to pull up a specific lineitem by doing a: [LINEITEMS Index=1][SKU][/LINEITEMS] it gives me sku2...so basically, it appears that iondexing starts at 1 when using [LINEITEMS] on it's own, but when you use [LINEITEMS index=x] it starts at 0... is this a bug in my code, or is it just a weirdness in WebCatalog?Derek -- Derek Chauran Web Developer, Dark Horse Comics derekc@darkhorse.com http://www.darkhorse.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:

    
  1. Re: [lineitems] Loop Break ( "WebDna @ Inkblot Media" 2004)
  2. Re: [lineitems] Loop Break ( "WebDna @ Inkblot Media" 2004)
  3. [lineitems] Loop Break ( Clint Davis 2004)
  4. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  5. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  6. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  7. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (charles kline 2003)
  8. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  9. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  10. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  11. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  12. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  13. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  14. Re: Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Donovan 2003)
  15. Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (Joe R. Richardson 2003)
  16. Re: [ListFiles] Within [LineItems] (James DeCambra 2001)
  17. Re: [ListFiles] Within [LineItems] (Kenneth Grome 2001)
  18. [ListFiles] Within [LineItems] (JWD 2001)
  19. Re: [lineitems] (Kalin Mintchev 2000)
  20. Re: [lineitems] (John Peacock 2000)
  21. Re: [lineitems] (Kalin Mintchev 2000)
  22. Re: [lineitems] (John Peacock 2000)
  23. Re: [lineitems] (Arturo Vargas 2000)
  24. [lineitems] (Kalin Mintchev 2000)
  25. Re: [lineitems] (Derek C. 2000)
  26. [lineitems] (Art Vargas 2000)
  27. Re: [LINEITEMS] (John Butler 2000)
  28. Re: [LINEITEMS] (Kenneth Grome 2000)
  29. Re: [LINEITEMS] (Derek C. 2000)
  30. Re: [LINEITEMS] (Kenneth Grome 2000)
  31. [LINEITEMS] (Derek C. 2000)
  32. Re: Using [showif] within [lineitems] [code fragment] (Kenneth Grome 2000)
  33. Re: Using [showif] within [lineitems] [code fragment] (Andrew Vernon 2000)
  34. Re: Using [showif] within [lineitems] [code fragment] (Derrick Puckett 2000)
  35. Re: Using [showif] within [lineitems] [code fragment] (Derrick Puckett 2000)
  36. Re: Using [showif] within [lineitems] [code fragment] (Andrew Vernon 2000)
  37. Re: Using [showif] within [lineitems] (Glenn Busbin 2000)
  38. Re: Using [showif] within [lineitems] (Andrew Vernon 2000)
  39. Re: Using [showif] within [lineitems] (Rob Marquardt 2000)
  40. Re: Using [showif] within [lineitems] (Kenneth Grome 2000)
  41. Re: Using [showif] within [lineitems] (Glenn Busbin 2000)
  42. Using [showif] within [lineitems] (Andrew Vernon 2000)
  43. Re: [lineitems] and [writefile] (PCS Technical Support 1998)
  44. Re: [lineitems] and [writefile] (Raymond Hatch 1998)
  45. [lineitems] and [writefile] (Raymond Hatch 1998)
  46. [lineitems] ( Loop)
Just a weird little thing I noticed...ok, so we are working with a hypothetical cart here:if I go: [ORDERFILE=/ShoppingCarts/[cart]] and [cart] has 3 items (sku1, sku2, sku3) in it, and then I: [lineitems][INDEX], [SKU][/LINEITEMS] it gives me 1 sku1,2 sku2,3 sku3, but if I want to pull up a specific lineitem by doing a: [LINEITEMS Index=1][SKU][/LINEITEMS] it gives me sku2...so basically, it appears that iondexing starts at 1 when using [lineitems] on it's own, but when you use [LINEITEMS index=x] it starts at 0... is this a bug in my code, or is it just a weirdness in WebCatalog?Derek -- Derek Chauran Web Developer, Dark Horse Comics derekc@darkhorse.com http://www.darkhorse.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/ Derek C.

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:

PIXO support (1997) RAM crash (1998) TRAINING videos - Prove IT. (1998) [taxRate] [TaxTotal] ? (1997) BGcolor (1997) WebCat2 - Getting to the browser's username/password data (1997) Uploading stuff along with variables (2006) URL for Discussion Archive (1997) remotely add + sign (1997) Stinkin' [Referrer] (1998) WCS Newbie question (1997) [WebDNA] Admin Lag (2009) WC2b15 File Corruption (1997) New Site Announcement (1998) Country & Ship-to address & other fields ? (1997) Balancing randomness (2000) Problem with version 4 browsers (1998) Locking up with WebCatalog... (1997) WebCat2b12 forgets serial # (1997) carriage returns in data (1997)