Re: dates and hex formatting
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14241
interpreted = N
texte = >I'm using the loop command to append multiple records to a database with a>single user action. I want to use the cart command to generate a new SKU>for each record generated by the loop command.>>The looping works fine and the appending works fine, but I can't figure out>how to get a new SKU for each record ?>>The code I am using is listed below.>>[loop start=1&end=[number]&advance=1]>[append>db=photos.db]sku=[cart]&url=[entrydate.form]&preview=sml[index].jpg[/append]>Record [index] added
>[/loop]You cannot do it with [cart] alone, but you already have the answerright in front of you ... :)Try appending the index value to the [cart] value to get a unique skuvalue for each new record. In other words, use sku=[cart][index]instead of sku=[cart], I think that should work.Sincerely, Ken GromeWebDNA Solutions808-737-6499http://www.smithmicro.com/webdnasolutions/.
Associated Messages, from the most recent to the oldest:
>I'm using the loop command to append multiple records to a database with a>single user action. I want to use the cart command to generate a new SKU>for each record generated by the loop command.>>The looping works fine and the appending works fine, but I can't figure out>how to get a new SKU for each record ?>>The code I am using is listed below.>>[loop start=1&end=[number]&advance=1]>[append>db=photos.db]sku=
[cart]&url=[entrydate.form]&preview=sml[index].jpg[/append]>Record [index] added
>[/loop]You cannot do it with
[cart] alone, but you already have the answerright in front of you ... :)Try appending the index value to the
[cart] value to get a unique skuvalue for each new record. In other words, use sku=
[cart][index]instead of sku=
[cart], I think that should work.Sincerely, Ken GromeWebDNA Solutions808-737-6499http://www.smithmicro.com/webdnasolutions/.
Kenneth Grome
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:
Running _every_ page through WebCat-error.html (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Shell script within a sandbox (2005)
Authorize Net??? (2002)
memory in high traffic servers (2004)
WebCat2: Items xx to xx shown, etc. (1997)
[ConvertChars] problem (1997)
Has anyone built this already? (2003)
serial number generation (1997)
Set Line Item (1999)
Multiple fields on 1 input (1997)
referrer and no caches (1997)
Moment of Thanks (1997)
How do I get Google to crawl a WebCat site? (2003)
WebTen and WebCat (1997)
Separate SSL Server (1997)
Upgrade to WebCat2 from Commerce Lite (1997)
Help needed! (1998)
Using Applescript to process WebCatalog functions (1998)
Add - optional parameters textA=.... (1997)