[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:

Possible to reset Linux file permissions w/in webcat [shell] ? (2000) [WebDNA] test (2011) No luck with taxes (1997) Thanks ! (1997) Subject: Authenticating users without dialog box (1997) NT version (1997) How to get shownext to just shownext once (1997) MATH TIME (1997) File commands and Wild Cards ?? (1998) Math Help (2000) Potential Conflicts? (1997) WebMerchant when CC network is down (1998) best way to get 2 unique strings on the same page load? (2000) Where is f2? (1997) Founditems Add/remove graphic display problem (1999) Alternating BGColors in Table Rows (1998) Weird Math and SV (1997) emailer (1997) international time (1997) Size limit for tmpl editor ? (1997)