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 answer right in front of you ... :)Try appending the index value to the [cart] value to get a unique sku value for each new record. In other words, use sku=[cart][index] instead of sku=[cart], I think that should work.Sincerely, Ken Grome WebDNA Solutions 808-737-6499 http://www.smithmicro.com/webdnasolutions/. Associated Messages, from the most recent to the oldest:

    
  1. Re: dates and hex formatting (Bennie Warren 1997)
  2. Re: dates and hex formatting (Kenneth Grome 1997)
  3. Re: dates and hex formatting (Grant Hulbert 1997)
  4. Re: dates and hex formatting (Kenneth Grome 1997)
  5. dates and hex formatting (Tim Rignold 1997)
  6. dates and hex formatting (Tim Rignold 1997)
>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 answer right in front of you ... :)Try appending the index value to the [cart] value to get a unique sku value for each new record. In other words, use sku=[cart][index] instead of sku=[cart], I think that should work.Sincerely, Ken Grome WebDNA Solutions 808-737-6499 http://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:

Secure server question (1997) Help name our technology! (1997) sendmail spaces (1997) RE: [WebDNA] Webstar (2008) YACBQ.....(Yet another checkbox question) (2000) WebCat editing, SiteGuard & SiteEdit (1997) Multiple catalog databases and showcart (1997) numfound question (2005) OT: Thawte SSL on Mac OS X Server (2005) Add a field to the error log? (1997) Calculating multiple shipping... (1997) [shownext] not displaying anything but first indices found (2000) [SEARCH] Context for SKU prices not working... (1998) America Online Issues (1998) I have observed and I am gone. (1998) Plugin or CGI or both (1997) Warning: Mac OS X 10.2.4 Update Overwrites Apache's (2003) Multi-processor Mac info ... (1997) $purchase WITHOUT creditcar (1997) Search/sort in URL Was: GuestBook example (1997)