[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 ChauranWeb Developer, Dark Horse Comicsderekc@darkhorse.comhttp://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:
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 ChauranWeb Developer, Dark Horse Comicsderekc@darkhorse.comhttp://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)